Link to home
Start Free TrialLog in
Avatar of brgdotnet
brgdotnetFlag for United States of America

asked on

How to validate multiple email addresses entered into a textbox. Using Java Script or JQuery?

Hello, I have an Asp.net web user control with a textbox on it. The textbox allows people to enter several email addresses at a time, as long as the email addresses are separated by a comma. Does anyone have any Java Script or JQuery code which will validate such input. I imagine a regular expression would be used. I need help on short notice. Can someone help me out by donating some code?

Example input

Jeff@stein.com,Terry@pine.com,Jlow@,flipdot@snoogle.com

Notice how the third email address is incorrect since there is nothing after the @ sign. So validation should catch this.
ASKER CERTIFIED SOLUTION
Avatar of chaau
chaau
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brgdotnet

ASKER

Thank you.