subha rr Posted February 14, 2009 Share Posted February 14, 2009 hi.....I need some help on this email validation. I got a text box, can let the users to input many email with the seprator comma(,).Then how can i use the javascript to do a validation for it? plz help..i dont know how to code it. plz help on code.This is the script i am using for validation of single email id <script language="javascript">function aa(valid) {if (/^\w+([\.-]?\w+)*@(\w{3})+([\.-]?\w+)*(\.\w{2,6})+$/.test(valid.email.value)){return (true)}alert("Email Id is not valid");return (false)}</script>how to write javascript for validating multiple email id's ....Pls help meregardssubha Link to comment Share on other sites More sharing options...
justsomeguy Posted February 16, 2009 Share Posted February 16, 2009 Split up the list of emails, and test each one.var email_array = emails.split(","); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.