Answers for "invoking jquery validator"

0

invoking jquery validator

$(document).ready(function () {

    $('#myform').validate({ // initialize the plugin
        // rules & options
    });

    $('#button').click(function() {
        if ($('#myform').valid()) {
            alert('form is valid - not submitted');
        } else {
            alert('form is not valid');
        }
    });

});
Posted by: Guest on November-02-2020
7

jquery form validation

function submitFunction(event){
	event.preventDefault();
}
$("#form_id").submit(submitFunction);
Posted by: Guest on May-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language