Prev: When writing html table to div, the data from table is unformatted
Next: document.write with "li" in IE end tags disappear
From: FAQ server on 6 Feb 2010 19:00 ----------------------------------------------------------------------- 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. http://msdn.microsoft.com/en-us/library/ms537449%28VS.85%29.aspx http://docs.sun.com/source/816-6408-10/form.htm http://jibbering.com/faq/faq_notes/faq_notes.html#FAQN4_25 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. |