jQuery Mobile panel close() Method
jQuery Mobile is a framework for creating websites and web apps that are accessible on devices of various screen sizes like mobiles, tablets, laptops, and desktops. In this article, we will use the jQuery Mobile panel close() method to close an already opened panel. The panel close() method does not accept any arguments.
$(".selector").panel( "close" );
Parameters: This method does not accept any arguments.
CDN Links: 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 first open the panel using the panel open() method, and then we invoke the panel close() method after 3 seconds to close the panel.
Please Login to comment...