I'm having some difficults with sortable option handle.
When I use:
$("table tr").sortable().disableSelection();
There is no problem.
If I add the handle option then the sortable stops working:
$("table tr").sortable({
handle: "td:eq(0)"
}).disableSelection();
The links:
http://jsfiddle.net/22C2n/
http://jsfiddle.net/22C2n/1/
Can anyone help me please?
Wrap your <tr>
's in a <tbody>
and change your code to:
$("table tbody").sortable({
handle: 'td:first'
}).disableSelection();
You specify the container that contains the elements you want to be sortable not the actual elements...
Try to pass an element: http://jsfiddle.net/22C2n/5/
$("table tr").sortable({
handle: $("td:eq(0)")
}).disableSelection();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With