JQuery Validation
submitHandler Option
Callback for handling the actual submit when the form is valid. Gets the form as the only argument. Replaces the default submit. The right place to submit a form via Ajax after it validated.
Syntax
var options; // Type: jQuery.validator.options 
var instance; // Type: jQuery.validator
instance = jQuery(".selector").validate(options);

var value; // Type: any 

// Get value
value = instance.submitHandler;
// Set value
instance.submitHandler = value;
var submitHandler : any;
Browser Compatibility
8
5
5
See Also

Reference

options type
validate jQuery Plugin

 

 


© 2013 All Rights Reserved.

Send comments on this topic.