What is disableSelection used for in jQuery sortable?
I’m a big fan of Stack Overflow and I tend to contribute regularly (am currently in the top 0.X%). In this category (stackoverflow) of posts I will will be posting my top rated questions and answers. This, btw, is allowed as explained in the meta thread here.
So, my question was whether someone could help me understand why is disableSelection useful and when to use it. The simple usage example of disableSelection is this:
$("#sortable").disableSelection();
The answer, by user kba, was that:
It’s useful if you want to make text unselectable. If, for instance, you want to make drag-and-drop elements with text on, it’d be annoying to the user if the text on the box accidentally would get selected when trying to drag the box.
Leave a Comment