jQuery UI Droppable destroy() Method Last Updated : 20 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 destroy() method to remove the droppable functionality completely from the widget. This method returns the element back to its pre-init state and this also does not accept any parameter. Syntax: $(".selector").droppable("destroy"); Parameters: This method does not accept any parameter. Return Value: This method destroys the widget. 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 destroy() method. HTML <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href= "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"> <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; } .dropp { width: 100px; height: 90px; border: 1px solid black; background-color: green; } </style> <script> $(function () { $('.dragg').draggable({ revert: true }); $('.dropp').droppable({ hoverClass: 'active', drop: function (e, ui) { $(this).html(ui.draggable.remove().html()); $(this).droppable('destroy'); $(this) .find("p") .html("Destroy Method Worked"); } }); }); </script> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h3>jQuery UI Droppable destroy() method</h3> <div class="dragg"> <p>Drag</p> </div> <br><br> <div class="dropp">Drop</div> </center> </body> </html> Output: Reference: https://api.jqueryui.com/droppable/#method-destroy 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 destroy() 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 destroy() method is used to remove the draggable functionality completely. Syntax: $( ".selector" ).dragg 1 min read jQuery UI dialog destroy() Method destroy() Method is used to destroy the dialog. This method does not accept any argument Syntax: $( ".selector" ).dialog("destroy"); Approach: First, add jQuery UI scripts needed for your project. <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet 1 min read jQuery UI Droppable disable() 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 disable() method to disable the droppable and this also does not accept 2 min read jQuery Mobile Filterable 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 Droppable 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 Like