I have a HTML select menu that allows multiple selects
Example:
<select name="myselect[]">...</select>
The problem I have is in order to get all of the selected values, i need to add the [] to the end of the name, this causes some issues with the javascript i have.
Once they press submit, I need to select ALL of the options, this is in javascript:
for (i=0; i < form.myselect[].length; i++) {
form.myselect[].options.selected = true;
}
This causes a JS error, because its looking for an array of myself, but its not its just the name. Anyone else have this proble, and found a work around?
Derek C.