faqts : Computers : Programming : Languages : JavaScript : Forms : Checkboxes

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

32 of 39 people (82%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How can I access checkboxes that have brackets ([ and ]) in their names?

Aug 11th, 2001 18:44
Dominik Rabiej, http://www.phpbuilder.com/forum/archives/2/2001/4/3/132768


The trick is to refer to the functions using the .elements property.
e.g.
document.form_name.elements['thing[4]']