Hi all;
I have a multi-select form element named foo[] (in order to access the array server-side). This works well to reference the array of selected options, but doesn't seem to work client-side on validation,,,i.e.
<form action='' method='post' onSubmit(return validate(this.foo[]);'>
<select name='foo[]' multiple>
<option value='1'>one</option>
<option value='2'>two</option>
<option value='3'>three</option>
</select>
</form>
Per the form above, when submitted, the reference to "[]" errors (at least in ie), and referencing simply "foo" results in an error too, as the element reference isn't recognized....
Anyway, I realize this is technically a js question, but, being server-side programmers, I figure someone here has run across this problem and has a quick solution???
Thanks in advance!