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

0

2 Answers 2

2

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

It sorts elements in list

Sign up to request clarification or add additional context in comments.

1 Comment

Although I was looking for a simple custom function, this plugin should work. Thanks a lot
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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.