Search
 
SCRIPT & CODE EXAMPLE
 

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"
            }
        },
    });
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: start button js 
Javascript :: javascript getter arrow function 
Javascript :: react select options 
Javascript :: random math js 
Javascript :: create http request 
Javascript :: ajax add custom header 
Javascript :: regex check for anchor tag with specific text 
Javascript :: javascript return 
Javascript :: req.params 
Javascript :: how to change string to array in javascript 
Javascript :: joining array of string 
Javascript :: calling anonymous function while declaring it 
Javascript :: basic json syntax 
Javascript :: Program to find GCD or HCF of two numbers javascript 
Javascript :: create owl component react js 
Javascript :: javascript pipe function 
Javascript :: how to check for null in javascript 
Javascript :: label animation css 
Javascript :: how to use fetch api 
Javascript :: prototype chain in javascript 
Javascript :: Send Data Using Express With Post 
Javascript :: http request body angular 
Javascript :: access index of array javascript 
Javascript :: inline style to change background color js 
Javascript :: reduce method 
Javascript :: react native layout 
Javascript :: a full express function 
Javascript :: dropdown hide 
Javascript :: react useref hook 
Javascript :: clear timeout js 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =