My code only works in Firefox. Why is this?
HTML:
<select id="selecter">
<option>one</option>
<option>two</option>
<option>three</option>
</select>
Javascript:
$(function() {
$(document).on("mouseover", "#selecter option",function(){
alert(1)
});
});
I'm curious why IE and chrome don't fire a mouseover event. See this JSFiddle: http://jsfiddle.net/yT6Y5/72/ (Works perfectly in Firefox.)
How can I get IE and Chrome to fire a mouseover event?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…