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.
精彩评论