0
我們如何驗證在GridView的每一行中是否都選中了複選框。以下代碼不起作用。查找GridViewRow中的複選框
$("#btnComplete").click(
function(e) {
$("#<%=grdCustDetails.ClientID%> tr").each(function() {
//Skip first(header) row
if (!this.rowIndex) return;
if ($(this).find('input:checkbox:checked').checked > 0) {
alert("your check box in this row is checked");
}
});
});
有在GridView的每一行與chkSel命名的複選框。 – CodeNinja