日期:2014-05-17  浏览次数:20463 次

jquery gridview中checkbox状态失效
 $.each($("#ctl00_MainContent_smtSutPerList").find("tr"), function (index, obj) {
                    if (index != 0) {
                        var object = $(this).find("td").eq(12).find($(":checkbox"));
                        alert(object.is(':checked'));
                        if (object.is(':checked') == true) {
                            count += 1;
                        }
                    }
                });
jquery?gridview jquery

------解决方案--------------------
$("#ctl00_MainContent_smtSutPerList").find("input [type=checkbox]").each(function(i)
{
    if($(this).attr("checked"))
      count++;
});


这样是不是就可以了?