Pop Up in navbar and tabbed content
Hello all!
I am creating a navbar that will be used as tabs. All is working well with the tabs. I would like for the last link in the navbar to open a popup with a list. The popup doesn't come up when it is in the li tag of the navbar. When I remove the li tag from the popup menu item it works just fine. Also it will work if I remove the data-role="tabs" from the outer div. The pop up content is located inside of a data-role = "page" which is something I noted from the docs that is required. Not sure what I am doing wrong. Hopefully it is something simple : ) Any help will be greatly appreciated!
Here is a code snippet so that you can see what I am attempting to do: JQM Version 1.4.2
- <div data-role="tabs" class="tab-content">
- <div data-role="navbar">
- <ul>
- <li class="ui-corner-all"><a href="#oned" class="firsttab2" data-ajax="false" onclick="ShowHide(#oned)" data-icon="user">First Tab</a></li>
- <li class="ui-corner-all"><a href="#twod" data-ajax="false" onclick="ShowHide(#twod)" data-icon="grid">Second Tab</a></li>
- <li class="ui-corner-all"><a href="#threed" data-ajax="false" onclick="ShowHide(#threed)" data-icon="comment">Third Tab</a></li>
- <li class="ui-corner-all"><a href="#popupMenu" data-rel="popup" data-transition="slideup" data-icon="gear">Actions...</a></li>
-
- </ul>
- </div><!--- end navbar --->
-
- <!--- tabbed content --->
- <div id="oned">
- <p>Panel One</p>
- </div>
-
- <div id="twod">
- <p>Panel Two</p>
- </div>
-
- <div id="threed">
- <p>Panel Three</p>
- </div>
-
- </div><!--- close tabbed-content --->
- <div data-role="popup" id="popupMenu" data-theme="b">
- <ul data-role="listview" data-inset="true">
- <li data-role="list-divider">Choose an action for this Person</li>
- <li><a href="#">Cancel</a></li>
- <li><a href="#">Reschedule</a></li>
- <li><a href="#">Deactivate</a></li>
- </ul>
- </div>