cucuru cucuru - 29 days ago 19
jQuery Question

validate jquery how to know it success

I have a form, and I would like to know if it validate but not submit, I need the value

var validation = $(idFormulario).validate({
errorClass: 'jqInvalid',
errorPlacement: function (error, element) {
return false;
},
success: function(e){
return false; //not submit
}
});


it doesn't works. How can I check if form is validate?

Answer

As mentioned in the above comment you've to use valid() :

$(idFormulario).valid();

Hope this helps.