PDA

View Full Version : <select multiple='multiple'> make selected item - unselcted on dblclick


V@no.
04-16-2003, 07:49 AM
Hi!
I have <select multiple='multiple'> field with bunch of options.
when I click on any option it will mark it as selected, to make it not selected, the only way is click on another option. so, is there a way unselect an option (not all but specific) by double click on it? or maybe some other better way?
thx.

P.S. I dont want have "empty" option on top.

beetle
04-16-2003, 06:14 PM
Uhm, shooting from the hip

<option ondblclick="this.selected=false">blah</option>

V@no.
04-16-2003, 07:09 PM
ah. thank you!
but there is no way make it from <select> ? I mean, if I have hundreds of <options> and need put in each that code...