1

我在使用 tablesorter 分页插件时遇到问题。当我第一次生成页面时,表格行是可点击的,但是在我进入下一页/上一页,创建一个新表格或对表格进行排序后,无论我以何种方式修改表格,这些行都变得不可点击。

如何解决这个问题呢?

我的代码在这个 jsFiddle 中 http://jsfiddle.net/hxKG3/

它是一个滑动面板,可以点击“变量”触发器调出表格。

先感谢您。

4

1 回答 1

1

Try this, I've changed in your fiddle and it seems to work

$('table.tablesorter tbody tr').live('click',function(event) {

But be aware that 'live' is being deprecated, you should be using

$('table.tablesorter tbody tr').on('click',function(event) {

, witch also doesn't work with tablesorter.

I guess it's because tablesorter has some years and it is not fully compatible with jquery 1.7.2

于 2012-08-07T16:04:54.577 回答