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.
$( ".selector" ).draggable( "destroy" );
Parameters: This method does not accept any parameter.
CDN Link: 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”>
Example: The below example illustrates the Draggable destroy() method in jQuery UI.