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 class="date".... />
How can I tell the validator to validate all inputs with a "date" class as a date?