获取table中CheckBox未选中行的数据

var notCheck = $("#tables6 input[type=checkbox]").not("input:checked");//tables6 为table的id

notCheck.each(function (x){
            //移除未选中行的数据
            var ids = $(this).parents("tr").find("td").eq(1).text();
            for (var i = 0; i < oldRoleId.length; i++) {
                  if(ids == oldRoleId[i]){
                      oldRoleId.splice(i,1);
                  }
            }            
        })    

猜你喜欢

转载自blog.csdn.net/c15162/article/details/109447139