jQuery Mobile panel toggle() Method
$(".selector").panel( "toggle" );
Arguments: This method does not accept any arguments.
CDN Links: We must include jQuery mobile in our code to use it.
<link rel=”stylesheet” href=”https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css” />
Example: The below example demonstrates the use of the panel toggle() method.