Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery sortable enable

I'm disabling dragging on jquery sortable list but not sure how to enable it back, can someone point me in direction please,

$(".anotherClass").sortable('disable'); //it disables it

I can't seem to find anything in documentation.

This question says enable input here but its not working

$("#wantedItems").sortable({
    receive: function (event, ui) {
        //enable the input here  which input ???????????????????????????????
    }
});
like image 946
Mathematics Avatar asked Mar 05 '13 14:03

Mathematics


1 Answers

You just call it with 'enable'

$( ".selector" ).sortable( "enable" );

Documentation for method: http://api.jqueryui.com/sortable/#method-enable

like image 126
Dreamwalker Avatar answered Sep 28 '22 21:09

Dreamwalker