User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,871 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,394 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 4412 | Replies: 2
Reply
Join Date: Jul 2006
Posts: 173
Reputation: vssp is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 4
vssp vssp is offline Offline
Junior Poster

Solution Email validation using java script

  #1  
May 21st, 2007
Hi Friends

I need to validate the email address when submit the form using java script. When I enter one email address i have to val;idate the mail id. But at the same time I have entered multiple email address seprated by comma . I unable to validate

How can i validate the multiple email address when i click on the form .

Please advise
Last edited by vssp : May 21st, 2007 at 1:45 am. Reason: enter more
Thanks
VSSP
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2007
Posts: 20
Reputation: smalldog is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
smalldog smalldog is offline Offline
Newbie Poster

Re: Email validation using java script

  #2  
May 21st, 2007
Hi VSSP, use something like this

<script>
function Validate(id) {
var list=document.getElementById(id).value.split(',');
for (y=0; y<list.length; y++) 
alert('Validate this email:'+list[y]);
}
</script>

<input type="text" name="email" id="email" value="mail@mail.com,mail@mail.net">
<input type="button" value="Validate" onclick="Validate('email');">
Join a forum for webmasters and developers
HTML Forum
Reply With Quote  
Join Date: Jul 2006
Posts: 173
Reputation: vssp is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 4
vssp vssp is offline Offline
Junior Poster

Re: Email validation using java script

  #3  
May 21st, 2007
Thanks
Its working

Thanks for your reply
Thanks
VSSP
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:38 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC