1

I have a datatable that has a column called Waive Fee with checkboxes. The column needs to be sortable, i.e. when the column header is clicked, all the checkboxes that are checked needs to bubble up or bubble down. Is there a way in Jquery to do this, like calling a function on mouse event on the header and then some logic inside this function.

Please advise. Thanks

user1006072
  • 953
  • 5
  • 20
  • 29

2 Answers2

2

Use this simple and lightweight plugin: sortElements plugin Instructions and examples here: article with instructions

It sorts elements in list

aliaksej
  • 246
  • 2
  • 6
1

You can something like a table sorter plugin in jquery http://tablesorter.com/docs/ and you can use the approach to use it with checkboxes, in this link

Jquery Tablesorter - sort by column having <input> elements

Community
  • 1
  • 1
Rishav Rastogi
  • 15,484
  • 3
  • 42
  • 47