0
$('#addLenderForm').validate({ // initialize the plugin
        errorClass: 'errors',
        rules: {
            email : email,
        }

Tag input email validation not working in jquery ,any other options for that validation.

Reshma
  • 31
  • 7

1 Answers1

0

Try to use native js

function validateEmail(email) {
    var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
    return re.test(String(email).toLowerCase());
}
John777
  • 1
  • 1