I have a table like this:
| Update | Name | Code | modification date |
| | name1 | code1 | 2009-12-09 |
| | name2 | otehercode | 2007-09-30 |
Where the Update column contains checkboxes <input type='checkbox' />
.
The checkbox initial state is determined before rendering the table, but after the rows are fetched from database (it's based on set of conditions, on the server-side).
The checkbox can be checked by default, unchecked by default or disabled (disabled='disabled'
as input
attribute).
I'm using jQuery's Tablesorter to sort my tables. And I'd like to be able to sort by the column containing the checkboxes. How is it possible (I could pass some additional attributes to my input
element maybe, if it would help...)?
Should I write my own parser to handle that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…