1

我正在尝试在我的表上添加一个额外的功能,用户可以在其中单击任何 Rn。这应该突出显示整个列并显示来自突出显示的列 Rn TD 的一些隐藏内容。除了一些小错误(例如,您可以单击不应该出现这种情况的“玩家名称”列)之外,突出显示效果很好,但是需要更改的内容(例如玩家名称和比赛信息)没有改变..

此外,由于我添加了额外的代码以使表格突出显示工作,因此上一个和下一个按钮不再起作用。可以在这里找到工作的上一个/下一个版本:http: //jsfiddle.net/yunowork/4UGre/

我究竟做错了什么?

演示:http: //jsfiddle.net/yunowork/4UGre/6/

4

1 回答 1

0

Try it in the last demo:

change:

rows.children().click(function() { ...

to:

rows.children().not('.emptyrace, .race').on('click', function() { ...
//exclude the td with prev and next link

We have again some bug (like highlight the R1, R2 element text) but this could be a starting point.

于 2012-09-18T15:22:14.367 回答