Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery button click confirm and validate before submit

$("#regsub").click(function() {
    $val = confirm('Register now and update details later, If you want to fill all details and access full potential of SISTA360 press Cancel and Continue');
    if($val == true){
    $('#fieldset__registration').validate({  
                rules: {
            password: {
                required: true,
                minlength: 6
            },
            confirmpassword: {
                required: true,
                minlength: 6,
                equalTo: "#f1-password"
            }
        },
    });
    }
});
 
PREVIOUS NEXT
Tagged: #jquery #button #click #confirm #validate #submit
ADD COMMENT
Topic
Name
2+4 =