bouton jQuery cliquez sur Confirmer et valider avant de soumettre

$("#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"
            }
        },
    });
    }
});
Sparkling Shrew