Problem with onMouseOut event with select box options (IE)
Posted
by nik
on Stack Overflow
See other posts from Stack Overflow
or by nik
Published on 2010-06-11T10:07:11Z
Indexed on
2010/06/11
10:13 UTC
Read the original article
Hit count: 257
Hello All,
The problem I am facing with below code is that whenever I try to select any option from the select box, the mouseout event executed (in IE, Mozilla doing gr8) and option disappear. How can one get over this bug.
<select name="ed" id="ed" dir="ltr" style="width:200px;overflow:hidden;" onMouseOver="this.style.width='auto'" onMouseOut="this.style.width='200px';">
<option value="1" selected="selected">click here</option>
<option value="1">Samuel Jackson</option>
<option value="2">David Nalog</option>
<option value="3">This one is a real real big name</option>
</select>
© Stack Overflow or respective owner