I need to validate an email ID for a user from DB using javascript/jQuery. How can I do that ?
            Asked
            
        
        
            Active
            
        
            Viewed 64 times
        
    -3
            
            
        - 
                    do you not mean email address? – Kenneth Clark Jun 15 '15 at 07:12
- 
                    1Java and Javascript is not the same. – Bogdan Kuštan Jun 15 '15 at 07:14
- 
                    Suggestion: read about how to ask reasonable questions on stack overflow ( http://stackoverflow.com/help ). Hint: dropping requirements alone doesn't work. – GhostCat Jun 15 '15 at 07:16
1 Answers
0
            
            
        This might be helpfull:
function validateEmail($email) {
    var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
    return emailReg.test( $email );
}
 
    
    
        iz25
        
- 274
- 1
- 11
