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

valiating form elements with brackets in the name

Status
Not open for further replies.

bebblebrox

IS-IT--Management
Aug 9, 2004
39
US
Hi,

Suppose you have:

Code:
<input type=text name="element[]">

how can you pull that value into javascript?

Code:
document.formName.element[].value
returns and error.

thanks
 
Code:
document.formName.elements["element[]"].value

-kaht

Do the chickens have large talons?
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top