https://bbs.csdn.net/topics/390893077
表单中有多条用<c:foreach>遍历出来的数据, 仔面有个复选框,我怎么才能只提交我选中的那几行数据呢???
$("#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");
}
});
});