After I run .validate(), I want to do something if the validation fails.
$(document).ready(function (){
$("#ipForm").validate(
if(not validate){
/// do some stuff here ///
};
);
});
This code is just a sample of course ..
to check if a form is valid, use the .valid() call.
For Example: