這是我的JavaScript函數。它嵌套在document.ready函數中()爲什麼我的JavaScript函數在Internet Explorer中不起作用
$(".bim").change(function() {
var str = "";
$("input:checked").each(function() {
str += $(this).next().text() + "_";
});
str = str.substr(0, str.length - 1);
alert(str);
});
它在Firefox和Chrome中正常工作。
它不與IE8和IE6
工作我非常新的JavaScript和幫助,將不勝感激
「it does not not」的意思是什麼?它沒有提醒/彈出?它提醒/彈出,但沒有消息? – 2010-08-04 20:48:56
你使用哪個版本的jQuery? – adardesign 2010-08-04 21:37:25
根本沒有警報。調試它(IE8中的f12)甚至不會觸發.change(function) 非常奇怪 – nkuebelbeck 2010-08-05 18:13:13