【发布时间】:2009-09-26 16:48:34
【问题描述】:
我有这段代码,可以在最新版本的 firefox、opera 中运行,我不确定是否在 IE8 中,但它在 Google Chrome、Safari 和 ofc IE7 和 6 中不起作用。
我的脚本有点复杂,但问题出在:
<select>
<option class='gramaz_vyber'>1</option>
<option class='gramaz_vyber'>2</option>
</select>
还有 jQuery:
$('.gramaz_vyber').click(function() {
$(this).hide();
});
正如我之前写的,我的代码看起来不同,但我需要在单击 <option> 后启动一个函数,它只在 FF/Opera 中有效......知道我该如何绕过它吗?
【问题讨论】: