一旦删除函数被调用,它们特定的行将被删除,剩余的行将在下面的方法的帮助下被更新(该单元格的 ID 和名称将被修改)
当 IE 浏览器不工作时,Chrome 和 firefox 工作正常(未修改该单元格的名称)
请帮我.........
function updateRowIds(row, num) {
$(row).attr("id", "roomChoice_" + (num - 1));
$("#roomNum_" + num).html("Room " + (num - 1));
$("#roomNum_" + num).attr("id", "roomNum_" + (num - 1));
$("#adults_" + num).attr({
id: "adults_" + (num - 1),
name: "adults_" + (num - 1)
});
$("#children_" + num).attr({
onChange: "addChildAges(this," + (num - 1) + ")",
id: "children_" + (num - 1),
name: "children_" + (num - 1)
});
$("#cots_" + num).attr({
id: "cots_" + (num - 1),
name: "cots_" + (num - 1)
});
$("#deleteRoom_" + num).attr({
id: "deleteRoom_" + (num - 1),
onClick: "deleteRoom(" + (num - 1) + ")"
}); //updateChildRows(num); // updating the child ids
}