Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript

Status
Not open for further replies.

transtech

Programmer
Aug 21, 2001
23
US
Hi all,

I have a form that is created inside a <span> like this :
<span div...>
<form name=test>
<input type=&quot;text&quot; name=&quot;firstInput&quot; ....>
</form>
</sapn>.
can anyone please tell me how to use the javascript to read the form elements inside.

I use &quot;document.test.firstInput.value&quot; is fine on IE. but on Netscape gives me a &quot;document.test.firstInput has no properties error&quot;. Please help me if you know.

thanks,
evan
 
My suggestion is to change the name of the form. &quot;test&quot; may be a reserved word. It's a good idea to NEVER use anything that even remotely looks like a reserved word as a form or field name (or any other user-defined name). Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top