I'm getting a syntax error using jquery validate plugin. I want to target classes and not field names which is why I am using the following syntax:
$("#myFormID").validate({
$('.optionSelectClass').rules("add", {
required: true
});
$('.optionSelectClass').messages("add", {
required: "Please select an option"
});
});
Firebug console says missing : after property id
Any idea's?