Witango-Talk: OT js help

2005-04-08 Thread webdude
Not really a js guy, but I was wondering if someone could help me with a small problem I am having. A simple problem and probably very easy for someone who knows... I am running an email validation script which works very well, but it only works when I have just one form element on the page.

Re: Witango-Talk: OT js help

2005-04-08 Thread Stefan Gonick
Hi, The forms[0] part of document.forms[0].email.value.length refers to the first form on the page. forms[1] would be the second form on the page. That's why it's bombing. You can either use forms[1] in your example, or you can name your form. For instance: FORM name=Email_Form METHOD=POST

Re: Witango-Talk: OT js help

2005-04-08 Thread webdude
Thanks, I will give it a try... Hi, The forms[0] part of document.forms[0].email.value.length refers to the first form on the page. forms[1] would be the second form on the page. That's why it's bombing. You can either use forms[1] in your example, or you can name your form. For instance: FORM