我有以下事件绑定到类“riskInformationButton”的许多超链接。它在Firefox中正常工作,但不在IE中。jquery代码在Firefox中工作,但不是IE
$(".riskInformationButton").bind("click", function(e){
if (e.stopPropagation) e.stopPropagation();
else e.cancelBubble = true;
var toggler = $(this).parent().parent().next();
while(!toggler.hasClass("spacerRow")){
toggler = toggler.toggleClass("hidden").toggleClass("visible").next();
}
});
任何帮助将不胜感激。 由于提前,
肖恩
有没有发生任何错误? – rahul 2009-09-10 12:22:36
你的锚标签是什么样的?另外,为什么不把$(“a.riskInformationButton”)?我不知道这是否会影响执行速度,但我个人喜欢在我的jQuery查询字符串中尽可能显式。 – 2009-09-10 12:23:21
- 没有错误。 - ?锚标签都只是正常的锚.. linkText“ – ErnieStings 2009-09-10 12:28:36