I am using the jQuery form validator, but I cannot figure out how to run it in a class. Take this example:
$("#myform").validate({
rules: {
field: {
required: true,
date: true
}
}
});
Where fieldhe expects the name of a particular input. But, if I have the following:
<input class="date".... />
How can I tell the validator to check all inputs with a date class as a date?
source
share