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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple javascript question 1

Status
Not open for further replies.

spicymango

Programmer
May 25, 2008
119
CA
Hi,

I have a text box name "00N20000000hIYD" I get the error, error points to ".0" not sure why?

Error: missing ) after condition Source File: Line: 22, Column: 24
Source Code:

Code:
if (document.formDetails.00N20000000hIYD.value=="" )
 
To refer to name beginning with number (non-compliant naming), you cannot use this format of referencing. Use instead this.
[tt] if (document.formDetails.[red]elements['[/red]00N20000000hIYD[red]'][/red].value=="" )[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top