Give the select tag an ID.  You can then reference the element by its ID.

<select name="aname[]" id="aname">


-Jason Garber

At 01:25 PM 10/2/2001 +0200, Sebastian wrote:
>Hi all
>If i use multiple select fields in a from
>i use name[] to access it in php afterwards
><select name=aname[] multiple>
>i can then access in php $name and it has its the elements that were
>my problem now is that i can't access name[] with javascript...
>if i try
>     alert([].value);
>gives an error...
>is there another way to neme the seletc field?
>if i use name=aname
>then i only get one selected value in php.....

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to