How to not allow parts of sortable jquery list to move?

Posted by sanpell on Stack Overflow See other posts from Stack Overflow or by sanpell
Published on 2010-03-08T00:33:26Z Indexed on 2010/03/08 0:52 UTC
Read the original article Hit count: 394

Filed under:
|
|

I made a sortable list:

<ul>
   <li class="line"><a href="#" class="food">milk</a></li>
   <li class="line"><a href="#" class="food">eggs</a></li>
   <li class="line"><a href="#" class="food">cheese</a></li>
</ul>

However, I want to make everything with class food not draggable. Since they are links, sometimes when people click them, they accidently reorder the list. Does anyone know how to make just the "food" class items not "draggable"?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jqueryui