Skip to content
Related Articles
Open in App
Not now

Related Articles

jQuery Mobile panel open() Method

Improve Article
Save Article
  • Last Updated : 06 Jan, 2022
Improve Article
Save Article

jQuery Mobile is a JavaScript library that is used to develop responsive websites and web applications. It is built on top of jQuery. In this article, we will use the jQuery Mobile panel open() method to open a panel. The panel open() does not accept any arguments. 



$(".selector").panel( "open" );

Parameters: This method does not accept any arguments.

CDN Links:

<link rel=”stylesheet” href=”” />
<script src=””></script>
<script src=””></script>

Example: Below example demonstrates how to open a panel using the open() method.


<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content=
        "width=device-width, initial-scale=1">
    <link rel="stylesheet" 
    <script src=
    <script src=
        function openPanel(){
            // Invoke the open method of panel
    <div data-role="page">
        <div data-role="header" >
            <h1 style="color:green;">GeeksforGeeks</h1>
            <h3>jQuery Mobile Panel open method</h3>
        <div role="main" class="ui-content">
                <button onclick="openPanel();"
                      Open Panel 
        <div data-role="panel" id="divID">
            <p>This is a panel</p>


jQuery Mobile panel open() Method


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!