Closed adamwong246 closed 9 years ago
as a workaround, you can interogate the value directly with jQuery
validate: (value, errorFunction) ->
if !($('#login-terms').is(':checked'))
errorFunction 'You must accept the terms and conditions.'
false
else
true
I'm going to fix package-side so the jQuery validation is not needed
Should work fine now, and careful with that conditional! value
will be boolean, not a string.
I'm making a TOS checkbox, very similar to the one descried in the readme.
The problem is that no matter the state of the checkbox, the value passed to validate is always "true", regardless of whether the box is checked or not.