It is possible do disable jquery ui sortable just for one list item?
Here is the code example:
<ul class="sortable">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
For example I will disable sortable when I click item.
Please Help.
Here is the javascript code:
$(document).ready(function(){
$('.sortable li').click(function(){
// Disable sortable for this item.............
});
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…