I\'m trying to use the jQuery validate plugin to validate classes instead of ID\'s. Despite the many threads which seem close to answering this issue - I can\'t get any of t
According to the docs, this should work:
jQuery.validator.addClassRules('classNameHere', { required: true });
Then you can determine whether the fields are valid by calling:
$('.fileName').valid();
Here's a link to the docs