请问下 动态生成的checkbox选中的时候,怎么有值是undefined?
请问下 动态生成的checkbox选中的时候,怎么有值是undefined?
我的checkbox是动态生成的,
查找的时候用的 $("div[id="queryList"]").find(input type="checkbox" checked)
<div >
<input type="checkbox" id="firstCheckBox"/>//全选的checkbox
//
下面是循环的
<input type="checkbox" id="checkbox0"/><input type="hidden" id="name0" value="name0"/>
</div>
$("input[type=checkbox]:checked").each(function(){
});
$("input[type=checkbox]:checked")
<input type="checkbox" id="firstCheckBox"/>//全选的checkbox