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.

0

1 Answer 1

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());
}
Sign up to request clarification or add additional context in comments.

1 Comment

Actually my problem ,is input tag validation ,not normal input validation

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.