Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

jQuery Mobile panel open() Method

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like 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
Last Updated : 06 Jan, 2022
Like Article
Save Article
Similar Reads
Related Tutorials