cucuru cucuru - 6 months ago 66
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?


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


Hope this helps.