JQuery Validation Library (Document! X Sample)
jQuery.validator Namespace / options type / submitHandler Option
In This Topic
    submitHandler Option
    In This Topic
    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.
    var options; // Type:  jQuery.validator.options
    var instance; // Type:  jQuery.validator
    instance = $(".selector").validate(options);
    var value; // Type:  any
    // Get value
    value = instance.submitHandler;
    // Set value
    instance.submitHandler = value;
    var submitHandler : any;
    Browser Compatibility
    See Also