I have a table with jquery ui sortable and i dont want sort the first column, my table is something like that
Pos | Name | Age
----------------------
GK | Dani | 16
ZQ | Joe | 17
JS
$(function(){
$('#players').sortable();
});
Html:
<table>
<thead>
<tr>
<th>Pos</th>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody id="players">
<tr>
<td>Gk</td>
<td>Dani</td>
<td>16</td>
</tr>
<tr>
<td>ZQ</td>
<td>Joe</td>
<td>11</td>
</tr>
</tbody>
</table>
Dont matter how I sort the lines I dont want that Pos collumn be sorted too, following my code, GK always have to stay on line one and ZQ always on line 2, I read this section of Jquery ui documentation but i confess that i dont understand how to apply this to my scenario.