The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › jQuery Validator Syntax: Think my syntax is incorrect.
jQuery Validator Syntax: Think I wrote it wrong. I’m trying to use the “depends” function from jQuery Validate. Doesn’t seem to be working. Any tips? http://jqueryvalidation.org/validate
NameOnCard: { required:{ depends: function(element) { return $("#CCMethod:checked"); } } }