首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

firefox3.6 ie8 jQuery选择checkbox的有关问题

2012-10-29 
firefox3.6 ie8 jQuery选择checkbox的问题jquery1.4.2function getCheckboxValue(){//注意ie8和高版本的fi

firefox3.6 ie8 jQuery选择checkbox的问题
jquery1.4.2

function getCheckboxValue(){//注意ie8和高版本的firefox不支持jquery 对checked的选择器//var s=$('input[type="checkbox"][name="xxx"][checked]');是获取不到选定的元素//需要用下面的方法获取选中节点var s=$('input[type="checkbox"][name="xxx"]');var postuserid = '';var postusertext='';$.each(s,function(i,n){if (n.checked){alert(n.value);}});}
1 楼 haolei92 2010-11-03   有这个问题吗 2 楼 leaya00 2010-11-04   当时我测试的
jquery1.4.2  ie8  firefox3.6。
ie6和7测试没这个问题。
3 楼 telyy123 2011-10-09   高版本的的确存在这个问题,不知道lz测试过没有,从firefox哪个版本开始不再支持这种选择器?

热点排行