To enable sortable() again, you can use
$(".anotherClass").sortable("enable");
To enable / disable button click with toggleButton
$('#toggleButton').click(function() { //check if sortable() is enabled and change and change state accordingly // Getter var disabled = $(".anotherClass").sortable( "option", "disabled" ); if (disabled) { $(".anotherClass").sortable( "enable" ); } else { $(".anotherClass").sortable("disable"); } });
Rahul gupta
source share