Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: can u help with this simple array notation problem?


Message #1 by "mike hughes" <m.hughes@g...> on Wed, 11 Sep 2002 14:40:42
thanks Phil

you are right and I quote for benefit of others:

Note that if you are using JavaScript the [] on the element name might 
cause you problems when you try to refer to the element by name. Use it's 
numerical form element ID instead, or enclose the variable name in single 
quotes and use that as the index to the elements array, for example: 
variable = documents.forms[0].elements['var[]'];
 

  Return to Index