jquery - apply sort arrows to the second row -
i using jquery data tables.
i want have sort arrows applied second row of table not first.
html:
<table id="tableusers" class="datatable"> <thead> <tr class="filterrow"> <td></td> <td></td> <td data-rownum="2"> @html.partial("_filterdropdown", model.rolelist) </td> <td></td> <td></td> <td></td> <td data-rownum="8"> @html.partial("_filterdropdown", model.enabledlist) </td> <td></td> <td></td> </tr> <tr> <th class="width-110">user name </th> <th class="width-110">name </th> <th class="width-110">role </th> <th class="width-200">email </th> <th class="width-90">created </th> <th>datesort </th> <th class="width-80">enabled </th> <th class="width-90">action </th> <th>enabledsort </th> </tr> </thead> <tbody> <tr> <td></td> </tr> </tbody> </table>
this looks like:
i want arrows on second row. thanks
// copy filter row var filterrow = $("#tableusers .filterrow").clone(); // remove filter row $("#tableusers .filterrow").remove(); // initialize data table $("#tableusers").datatable(); // re-add filter row $("#tableusers thead tr:first").before(filterrow);
Comments
Post a Comment