0

Is it possible to trigger the validation of email field when the customer click next button only? I want to remove the validation on keypress etc

0

Added following code inside next event method


var loginFormSelector = 'form[data-role=email-with-possible-login]';
$(loginFormSelector).validation();
var emailValidationResult = Boolean($(loginFormSelector + ' input[name=username]').valid());
if(emailValidationResult) {
    // validation
}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.