- JScript code
$("#tab_id tr:gt(0)").remove();//删除第一行外的所有行 $("#tab_id tr:eq(0)").remove();//删除第一行
请问各位大虾有更好的方法么?
------解决方案--------------------
$("#tab_id").find("tr").remove();
------解决方案--------------------
$("#tab_id").html("");
------解决方案--------------------
$("#tab_id tr").remove();