I am trying to get the jQuery validation working on a webpage I am creating. I have about 6 different fieldsets that contain the page\'s details. I am using this as I am hid
You can also use the element call of the validator.
$('form').validate({
onfocusout: function(element) {
this.element(element);
},
rules: {
name: 'required',
from: 'required'
},
messages: {
name: 'Please enter your firstname',
from: 'Please enter where are you from'
}
});