在Firefox中,当我点击选项,Firefox的问候选择也被点击。 e.stoppropgation()或e.preventdefault()不能解决此问题。是否有可能停止选项点击事件就像在铬?谢谢你的想法。jQuery选择点击和火狐
<select>
<option>test</option>
</select>
<p>adfadf</p>
$(document).ready(function(){
$("select").click(function(){$("p").toggle();})
$("select option").click(function(){alert('it is weired');})
})
是的,谢谢。我拼错停止传播。非常非常愚蠢。 – user995789