如题所述
那我如何获取table中checkbox被选中的所对应的行数呢
$("table input:checkbox").each(function(){ if($(this).attr("checked")==true){ alert($("table input:checkbox").index(this)) }})希望对你有帮助.