PDA

View Full Version : attach event to options in select element



ankitforjava
Apr 27th, 2007, 11:12 PM
Hi,

I would like to do something like this using javascript and/or css

<select>
<option onmouseover="alert('something1')">something1</option>
<option onmouseover="alert('something2')">something2</option>
</select>


This works in Firefox but not in IE 6. Can someone please suggest a fix for this?