jQuery Mobile Popup destroy() Method
In this article, we will jQuery Mobile Popup destroy() method to destroy a popup. When we invoke the destroy() method on a popup, the popup functionality is removed from the popup element and it returns to its pre-init state.
$( ".selector" ).popup( "destroy" );
Parameters: This method does not accept any parameter.
CDN Links: To use Popup element, first add jQuery Mobile to your project.
<link rel=”stylesheet” href=”https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css” />
Example: In the example below, we will open a popup and invoke the destroy() method after 3000ms.