在winform中使用checbox很多.上次那个项目里就用到了,写了一个不太好用,后来翻阅了一下微软提供的样码,我觉得有必要给大家分享一下. // This event handler manually raises the CellValueChanged event // by calling the CommitEdit method. public void DataGridView1_CurrentCellDirtyStateChanged(object sender, EventA…
//检测勾选值 function checkEnter() { var Ivalue = ""; $("#dataTable tr").each(function () { var chk = $(this).find('td').eq(0).find('#subcheck'); if (chk.attr("checked") == "checked") { var IsEter = $(this).find('td').eq…
方式一 var selectList=''; jQuery(".table tbody input[type=checkbox]:checked").map(function () { var id = jQuery.trim(jQuery(this).closest("tr").find("td:eq(0)").text()); selectList+=id+','; }) selectList=selectList.substring(0,s…