jQuery table sorter with combo strings
Each second row contains details for the first row. By default, it is hidden using CSS, but I can open it using jQuery.
What I would like to achieve: sorting a table like this jQuery plugin: http://tablesorter.com/docs/
Problem: The plugin must “glue” all pairs of lines and move them together. Sorting should be performed only with the data of the first row (.row-vm), ignoring the contents of the second row (.row-details).
Is there a jQuery plugin that supports this?
<tr class="row-vm"> <td>...</td> <td>...</td> ... </tr> <tr class="row-details"> <td colspan="6"> Description data </td> </tr> <tr class="row-vm"> <td>...</td> <td>...</td> ... </tr> <tr class="row-details"> <td colspan="6"> Description data </td> </tr>
source share