Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Table Sorting in jQuery [closed]

I have simple HTML Table, I need to add sorting and grouping on every columns in jQuery.

<table cellspacing='0'>
<thead>
    <tr>
        <th>Task Details</th>
        <th>Progress</th>
        <th>Vital Task</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td>Create pretty table design</td>
        <td>100%</td>
        <td>Yes</td>
    </tr>

</tbody>

like image 314
Waqas Zahoor Avatar asked Dec 15 '22 09:12

Waqas Zahoor


1 Answers

There are various plugins to perform this using jQuery. The most known one is jQuery tablesorter:

http://tablesorter.com/docs/

There are loads of such plugins here, pick the one you like most:

http://www.tripwiremagazine.com/2013/06/jquery-filter-sort-plugins.html

like image 104
Filippos Karapetis Avatar answered Mar 07 '23 00:03

Filippos Karapetis