62,046
社区成员
发帖
与我相关
我的任务
分享
$(":checkbox[name='checkbox的name']").each(function(){
});
$(document).ready(function()
{
alert($("#ctl00_MainContent_smtSutPerList").find("input [type=checkbox]").length);
$("#ctl00_MainContent_smtSutPerList").find("input [type=checkbox]").each(function(i)
{
if($(this).attr("checked"))
count++;
});
});
你加这段js到你页面上,然后看看alert弹出几?$("#ctl00_MainContent_smtSutPerList").find("input [type=checkbox]").each(function(i)
{
if($(this).attr("checked"))
count++;
});
这样是不是就可以了?