Hello.,
I am new to WIX and html.,
I have created a website for own Salon and I have created a page with lots of images.
I want to show the page to customer if only 3 text fields or atleast 1 password field is filled. I have created 3 text fields 1.Name 2. phone , 3.password (which will be provided by us) and if password is correct then he/she will be directed to gallery page.
I dont know how to disable button and enable again when password is validated...
please help
urgently...
$("#reg_confirm_pass").blur(function() {
var user_pass = $("#reg_pass").val();
var user_pass2 = $("#reg_confirm_pass").val();
//var enter = $("#enter").val();
if (user_pass.length == 0) {
alert("please fill password first");
$("#enter").prop('disabled',true)//use prop()
} else if (user_pass == user_pass2) {
$("#enter").prop('disabled',false)//use prop()
} else {
$("#enter").prop('disabled',true)//use prop()
alert("Your password doesn't same");
}
});