开发者

Fix jQuery table sorter header row in place

So, I have a table I want to sort with the jQuery tablesorter plugin. If I put everything -- column headers and data into a single table, everything sorts super easy. However, if I have lots of rows in my table, I want the data r开发者_开发技巧ows to be in a scolling div. Any ideas on how to fix the header row in place?

Many thanks!


So, I figured this one out. (Sorry, didn't have code I could actually paste, and spent the time fixing my code rather than coming up with something I could post.)

What I ended up doing was something like this:

http://tablesorter.com/docs/example-trigger-sort.html

The problem I had was not having a in the table I was trying to sort, because I had a different table containing the column headers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜