faqts : Computers : Programming : Languages : PHP : Not Quite PHP : Javascript

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

15 of 21 people (71%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I use JS to test a multiple select using PHP syntax of name="mySelect[]"

Sep 14th, 2001 16:43
Tanya Huang, John Marc,


try this syntax to get around the "[]" used in PHP:
var example = document.forms['myForm'].elements['mySelect[]'];