GingerHead
GingerHead

Reputation: 8230

JQuery TableSorter: How to show the arrows on one column only

I am implementing jquery's tablesorter. But I can't seem to find a way to do the following:

  1. Only show the sorting arrows on one column
  2. Only permit sorting the table by clicking on that column only, and when clicking on other columns do nothing.

I Googled a lot but to no avail.

this is my table:

<table id="myTable" class="tablesorter"> 
<thead> 
<tr> 
    <th>Last Name</th> 
    <th>First Name</th> 
    <th>Email</th> 
    <th>Due</th> 
    <th>Web Site</th> 
</tr> 
</thead> 
<tbody> 
<tr> 
    <td>Smith</td> 
    <td>John</td> 
    <td>[email protected]</td> 
    <td>$50.00</td> 
    <td>http://www.jsmith.com</td> 
</tr> 
<tr> 
    <td>Bach</td> 
    <td>Frank</td> 
    <td>[email protected]</td> 
    <td>$50.00</td> 
    <td>http://www.frank.com</td> 
</tr> 
<tr> 
    <td>Doe</td> 
    <td>Jason</td> 
    <td>[email protected]</td> 
    <td>$100.00</td> 
    <td>http://www.jdoe.com</td> 
</tr> 
<tr> 
    <td>Conway</td> 
    <td>Tim</td> 
    <td>[email protected]</td> 
    <td>$50.00</td> 
    <td>http://www.timconway.com</td> 
</tr> 
</tbody> 
</table> 

Upvotes: 2

Views: 4533

Answers (1)

malificent
malificent

Reputation: 1441

have a look here http://tablesorter.com/docs/#Configuration

at the header property

Upvotes: 4

Related Questions