Кнопка jQuery Нажмите подтвердить и проверить перед отправкой

$("#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