Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9257637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:11:34+00:00 2026-06-18T12:11:34+00:00

I am trying to add a panel to use as a side menu, but

  • 0

I am trying to add a panel to use as a side menu, but it looks like I am doing something wrong. I’ve tried troubleshooting it but can’t see where the issue is.

The panel is not hidden by default (not sure if that’s how it should behave) and I can’t get it slide out/in.

Here’s what I have. I appreciate your help.

<!-- @ Page = menu -->
<div data-role="page" id="menu">

    <div data-role="panel" id="myPanel" class="main_nav" data-display="push"  data-dismissible="true" data-theme="a">

        <div class="nav_profile">
            <div class="nav_thumb"><img src="images/nav_thumb.png" width="64" /></div>
            <div class="nav_name">
                <h3>user</h3>
                <p>2 active threads</p>
            </div><!--/nav_name-->
        </div><!--/nav_profile-->


    </div><!-- /panel -->

    <div data-role="header" class="header" data-position="fixed" role="banner" >

        <h3>Threads (2)</h3>
        <a href="#" class="right menu_button">New</a>
    </div>

    <div data-role="content">
        <a href="#myPanel" data-rel="panel" data-role="button" class="menu_icon left" ></a>
        <div class="head_search">
            <input type="text" class="search rounded" placeholder="Search" />
        </div>


    </div>

</div><!--/menu-->
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:11:35+00:00Added an answer on June 18, 2026 at 12:11 pm

    It’s here: http://jquerymobile.com/demos/1.3.0-beta.1/docs/panels/index.html

    A panel’s visibility is toggled by a link somewhere on the page or by
    calling the panel’s open method directly. The defaults place the panel
    on the left and it will be revealed. Open a panel programmatically
    like this:

    $( "#idofpanel" ).panel( "open" , optionsHash );

    To control a panel from a link, point the href to references the ID of
    the panel you want to toggle (mypanel in the example above). This
    instructs the framework to bind the link to the panel. This link will
    toggle the visibility of the panel so tapping it will open the panel,
    and tapping it again will close it.

    <a href="#mypanel">Open panel</a>

    I put your code in a jsFiddle and found no problems, the panel opens properly: http://jsfiddle.net/Twisty/Ej7A7/1/

    Make sure you’re using the latest JQuery and JQM Frameworks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is something wrong with the construction of this class? I am trying to add
I am trying to add JList component to panel but the list look weird
I'm trying to use IzPack to install my program and I'd like to add
I'm trying to use a flowpanel in java gwt but when I add different
I'm trying to add panel labels to different facets in a plot. I want
I'm trying to add a collapsible panel to a panel I added in the
I am trying to add n image to a panel using Netbeans. I dragged
I'm trying to add a custom button to the button panel of jQuery's datepicker.
I'm trying to add an image in a stack panel at runtime. My image
I am trying to add the following tabs to the following panel, between the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.