There are multiple pieces of data traversed using
I found that he would submit everything once I submitted it. But only the selected checkboxes are on, and the unselected ones are not
In the submission event, remove the names of the unselected rows
Thank you for the reminder! ! ! ! Solved
This is the method code
$("#jiesuan").click(function(){ alert("结算"); //复选框的name='od' $("input[name='od']").each(function(){ if($(this).attr("checked")== 'checked'){ //是选中 }else{ // td tr $(this).parent().parent().find("input").removeAttr("name"); } }); });