jQuery UI Droppable disable() Method Last Updated : 14 Jan, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report jQuery Mobile is a web-based technology that is used to make responsive content for websites that can be accessed on all types of smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Droppable disable() method to disable the droppable and this also does not accept any parameter. Syntax: $(".selector").droppable( "disable" ); Parameters: This method does not accept any parameters. CDN Link: Below are some jQuery Mobile scripts that will be needed for your project so add these to your project. <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/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 Mobile Droppable disable() method. HTML <!DOCTYPE html> <html lang = "en"> <head> <meta charset = "utf-8"> <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet"> <script src = "https://code.jquery.com/jquery-1.10.2.js"></script> <script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <style> .dragg { width: 90px; height: 50px; border: 1px solid black; background-color:blue; } .dropp2, .dropp3 { width: 200px; height: 50px; border: 1px solid black; float : center; background-color:green; } </style> <script> $(function() { $( ".dragg" ).draggable(); $( ".dropp2" ).droppable({ drop: function( event, ui ) { $( this ) .find( "p" ) .html( "Dropped!" ); } }); $( ".dropp3" ).droppable("disable"); $( ".dropp3" ).droppable({ drop: function( event, ui ) { $( this ) .find( "p" ) .html( "Dropped!" ); } }); }); </script> </head> <body> <center> <h1 style = "color:green;">GeeksforGeeks</h1> <h3>jQuery UI Droppable disable() method</h3> <div class = "dragg"> <p>Drag</p> </div> <br><br> <div class = "dropp2"> <p>Drop here</p> </div> <br><br> <div class = "dropp3"> <p>Disable - Can't Drop Here</p> </div> </center> </body> </html> Output: Reference: https://api.jqueryui.com/droppable/#method-disable Comment More infoAdvertise with us Next Article jQuery UI Droppable destroy() Method S SHUBHAMSINGH10 Follow Improve Article Tags : Web Technologies JQuery jQuery-UI jQuery-UI-Droppable Similar Reads jQuery UI Draggable disabled() Method The jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI draggable disable() method is used to disable the draggable property of the HTML div element. This method does not 1 min read jQuery UI Droppable disabled Option jQuery Mobile is a web-based technology that is used to make responsive content for websites that can be accessed on all types of smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Droppable disabled Option to disable the droppable if set to true. and this also a 2 min read jQuery UI Droppable destroy() Method jQuery Mobile is a web-based technology that is used to make responsive content for websites that can be accessed on all types of smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Droppable destroy() method to remove the droppable functionality completely from t 2 min read jQuery UI Droppable enable() Method jQuery Mobile is a set of HTML5 based user system interaction widget toolbox used for various purposes build on top of jQuery. It is designed to build fast and responsive sites accessible to mobile, tabs, and desktops. The jQuery UI Droppable enable() method is used to enable the draggable elements 1 min read jQuery UI Draggable enable() Method jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Draggable enable() method is used to enable the draggable option. This method does not accept any parameter. Syntax: $( 1 min read jQuery Mobile Filterable disable() 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 Like