FAQ Topic - My element is named myselect[], how do I access it? (2010-12-14)

  • Follow


-----------------------------------------------------------------------
FAQ Topic - My element is named myselect[], how do I access
it?
-----------------------------------------------------------------------

Form controls with any "illegal" characters can be accessed with
`formref.elements["myselect[]"]` - The bracket characters,
amongst others, are illegal in ID attributes and javascript
identifiers, so you should try to avoid them as browsers may
handle them incorrectly.

<URL: http://msdn.microsoft.com/en-us/library/ms537449%28VS.85%29.aspx>
<URL: https://developer.mozilla.org/en/DOM/form>
<URL: http://jibbering.com/faq/notes/form-access/>


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

-- 

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

0
Reply javascript4 (1202) 12/14/2010 12:00:03 AM


0 Replies
187 Views

(page loaded in 0.055 seconds)


Reply: