I’m using the tablesorter(http://tablesorter.com) jquery plugin to sort table data… Does anyone know if its possible to change the color of the entire column on click? Even if it isn’t with this plugin, some other way?
Thanks,
Mike
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looking at the docs you linked to they mention a couple of triggers that fire when sorting starts/stops. Which are connected by binding them to the table.
Looking at the code they use in their examples I see that the sorted header has a class ‘headerSortUp’ or ‘headerSortDown’. From here we find out which
<th>has one of these classes and highlight its column cells.