Tuesday, 15 June 2010

javascript - Sortable HTML table with multirow header -



javascript - Sortable HTML table with multirow header -

there several js scripts can sort html table columns, illustration one: http://www.kryogenix.org/code/browser/sorttable/

but seem work if (the fixed header rows) 1 row. have 3 rows, there categories @ top , breakdown sub categories down, sorta this:

--------------------------------------------------------------------------------- | category 1 | category 2 | | sub cat 1 | sub cat 2 | sub cat 3 | sub cat 4 | sub cat 5 | | info | info | info | info | info |

so question is, there script can sort html table rows based on bottom thead row.

so in illustration sort info based on sub cats.

you might want checkout datatables. provides advanced table operations, including sorting. supports sorting bottom thead row natively, see this example.

javascript html sorting

No comments:

Post a Comment