How do I run jQuery form validation by class?
- by joshcomley
Hi there,
I've been using the jQuery form validator, but I can't seem to figure out how to trigger it by class. Take this example:
$("#myform").validate({
rules: {
field: {
required: true,
date: true
}
}
});
Where field it is expecting the name of the particular input. But, what if I have the following:
<input…