1
我有一个tablesorter表。 所以,如果我排序表,行号不会更新。它是固定的...Tablesorter:排序后更新行号
$("#tablesorter-demo tr").click(function() {
$('#tablesorter-demo tr').not(this).removeClass('hilite');
$(this).toggleClass('hilite');
var i = $("#tablesorter-demo tr").index(this);
$("#codefmenims_id").val($("#td_idfmenims" + i + "").text());
$("#groupe1").val($("#td_gpefme" + i + "").text());
$("#groupe1s").val($("#td_gpenims" + i + "").text());
});
有人能告诉我如何我可以更新我的表的行号,如果我排序表?
可能与[此问题]相关(http://stackoverflow.com/questions/18763027/jquery-tablesorter-index-column-insert)〜参见[本演示](http://jsfiddle.net/Mottie/ 4mVfu/1162 /) – Mottie