Login
Create Account
Welcome Back…!!!
jQuery(document).ready(function () {
jQuery(".register").validate({ rules: { username: "required", billing_phone: { required: true, minlength:10, maxlength:12, number: true }, // billing_phone: "required", email: { required: true, email: true, maxlength: 255, },
gender: { required: true, }, password: { required: true, }, confirm_password: { required: true, //equalTo: '[name="password"]', }, competitor_dob_day: "required", competitor_dob_month: "required", competitor_dob_year: "required", terms: { required: true,
}, }, groups: { DateofBirth: "competitor_dob_day competitor_dob_month competitor_dob_year" }, messages: { username: "Username is required.", email: { required: "Email is required.", email: "Please enter a valid email address.", //remote: "Email already in use!" }, billing_phone: { required: "Phone number is required.", billing_phone: "Please enter a 12 digits.", //remote: "Email already in use!" }, // billing_phone: "Phone number is required", gender: "Please select gender", password: "Password is required", confirm_password: "Re-enter same password", },
// errorPlacement: function(error, element) { // var placement = jQuery(element).data('error'); // if (placement) { // jQuery(placement).append(error) // } else { // error.insertAfter(element); // } // }, submitHandler: function(form) { console.log("Form Submit Successfully........."); form.submit(); } });
jQuery(".password-show-btn").on("click", function () { console.log("test"); if (jQuery("#reg_password2").attr("type") == "password") {
jQuery("#reg_password2").attr("type", "text");
}else { jQuery("#reg_password2").attr("type", "password"); } });
jQuery("#register-btn").click(function () { jQuery(".register").show(); jQuery(".registration-form-wrapper").show(); jQuery(".login").hide(); jQuery(".woocommerce-error").hide(); jQuery(".extra-fields").hide(); jQuery("#login-btn").removeClass("active"); jQuery("#register-btn").addClass("active"); });
jQuery("#next-step-btn").on('click', function () { var valid = jQuery(".register").valid(); console.log(valid); if (valid == true){ //alert("dfgdg"); //jQuery("#next-step-btn").click(function () { jQuery(".extra-fields").show(); jQuery(".basic-fields").hide(); jQuery("#next-step-btn").hide(); jQuery(".welcome-content").hide(); jQuery("#login-btn").hide();
jQuery("#register-btn").click(function () { jQuery(".register").show(); jQuery(".basic-fields").show(); jQuery(".extra-fields").hide(); jQuery("#next-step-btn").show(); jQuery(".welcome-content").show(); }); //}); } });
jQuery(".back-button").click(function () { jQuery("#login-btn").show(); jQuery(".extra-fields").hide(); jQuery(".basic-fields").show(); jQuery("#next-step-btn").show(); jQuery(".welcome-content").show(); });
jQuery("#login-btn").click(function () { jQuery(".login-form-wrapper").show(); jQuery(".login").show(); jQuery(".register").hide(); jQuery(".woocommerce-error").hide(); jQuery("#login-btn").addClass("active"); jQuery("#register-btn").removeClass("active"); });
});
// jQuery(".register-submit-btn").click(function () { // var day = jQuery(".competitor_dob").val(); // var month = jQuery(".competitor_month").val(); // var year = jQuery(".competitor_year").val();
// if( day = '' && month = '' && year = '') { // jQuery('.woocommerce form .form-row select').css("border","1px solid red"); // } // });