The handle option of the plugin allows you to determine what is an element that can trigger sorting, you can provide a selector or element.
If you have this html, with .handler will be a handle to start sorting:
<ul class="sortable"> <li> <span class="handle"></span> My element </li> </ul>
Apply this parameter as follows:
$( ".sortable" ).sortable({ handle: '.handle' });
You can style your control as you like.
Didier Ghys Dec 18 '11 at 2:56 a.m. 2011-12-18 14:56
source share