jQuery UI Sortable disable() Method Last Updated : 12 Jan, 2022 Comments Improve Suggest changes Like Article Like Report jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add widgets easily. In this article, we will be using the jQuery UI Sortable disable() Method to disable the sortable. Syntax: $( ".selector" ).sortable( "disable" ); Parameter: This method does not accept any parameter. Return type: This method returns an object value. CDN Link: Below are the jQuery UI CDN links that will be needed for your project. <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"><script src= "https://code.jquery.com/jquery-1.12.4.js"></script><script src= "https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> Example: This example describes the uses of the jQuery UI Sortable disable() Method. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href= "https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src= "https://code.jquery.com/jquery-1.12.4.js"> </script> <script src= "https://code.jquery.com/ui/1.12.1/jquery-ui.js"> </script> <style> #sortable { list-style-type: none; width: 50%; } #sortable li { margin: 10px 0; padding: 0.5em; font-size: 25px; height: 20px; background-color: lightgreen; } #btn { margin-left: 50px; padding: 0.5; font-size: 25px; height: 80px; width: 50%; } </style> <script> $(function () { $("#btn").on('click', function () { $("#sortable").sortable("disable"); }); }); $(function () { $("#sortable").sortable(); }); </script> </head> <body> <center> <h1 style="color: green;"> GeeksforGeeks </h1> <h4>jQuery UI Sortable disable() Method</h4> <ul id="sortable"> <li class="ui-state-default">Geeks1</li> <li class="ui-state-default">Geeks2</li> <li class="ui-state-default">Geeks3</li> <li class="ui-state-default">Geeks4</li> <li class="ui-state-default">Geeks5</li> </ul> <div class="res"></div> <input type="button" id="btn" value="Disable"> </center> </body> </html> Output: Reference: https://api.jqueryui.com/sortable/#method-disable Comment More infoAdvertise with us Next Article jQuery UI Sortable disable() Method S SHUBHAMSINGH10 Follow Improve Article Tags : Web Technologies JQuery jQuery-UI jQuery-UI-Sortable Similar Reads jQuery UI Sortable enable() Method jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add 2 min read jQuery UI Selectable disable() Method jQuery UI consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is great for building UI interfaces for the webpages. It can be used to build highly interactive web applications or can be used to add widgets easily. The jQuery UI Selectable di 1 min read jQuery UI Sortable instance() Method jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery, JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add 2 min read jQuery UI Sortable disabled Option jQuery UI Sortable Widget disabled Option is used to disable the sortable elements if it set to true. Syntax: $( ".selector" ).sortable({ disabled: true }); CDN Link: First, add jQuery UI scripts needed for your project. <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery- 1 min read jQuery UI Sortable cancel() Method jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add 2 min read jQuery UI Sortable destroy() Method jQuery UI is a web-based technology and consists of various GUI widgets, visual effects, and themes. These features can be implemented using the jQuery JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web appl 2 min read jQuery UI Sortable distance Option jQuery UI is a web-based technology and consists of various GUI widgets, visual effects, and themes. These features can be implemented using the jQuery, JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web app 2 min read jQuery UI Selectable disabled Option jQuery UI consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is great for building UI interfaces for the webpages. It can be used to build highly interactive web applications or can be used to add widgets easily. The jQuery UI Selectable di 2 min read jQuery UI Sortable widget() Method jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery, JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add 2 min read jQuery UI Sortable option() Method jQuery UI is a web-based technology and consists of GUI widgets, visual effects, and themes implemented using the jQuery, JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add 3 min read Like