原先的语句为var selectchks = $("input[type=checkbox][name=productitem][checked]");
在ie7,ie8和ie9兼容模式都能正常获取
但是在ie9标准模式下获取不到,length总为0
于是查资料,发现如下写法
var selectchks = $("input[type=checkbox][name=productitem]:checked");
经测试在ie7,ie8和ie9兼容模式,ie9标准模式中也能正常使用。
如对本文有疑问, 点击进行留言回复!!
offset、client、scroll (width,height、left,top、X,Y)
网友评论