Pop Up in navbar and tabbed content

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

  1. <div data-role="tabs" class="tab-content">
  2.   <div data-role="navbar">
  3.     <ul>
  4.       <li class="ui-corner-all"><a href="#oned" class="firsttab2" data-ajax="false" onclick="ShowHide(#oned)"  data-icon="user">First Tab</a></li>
  5.       <li class="ui-corner-all"><a href="#twod" data-ajax="false"  onclick="ShowHide(#twod)"  data-icon="grid">Second Tab</a></li>
  6.       <li class="ui-corner-all"><a href="#threed" data-ajax="false"  onclick="ShowHide(#threed)" data-icon="comment">Third Tab</a></li>
  7.  <li class="ui-corner-all"><a href="#popupMenu" data-rel="popup" data-transition="slideup" data-icon="gear">Actions...</a></li> 
  8.  
  9. </ul> 
  10.   </div><!--- end navbar --->
  11.          
  12. <!--- tabbed content --->
  13.     <div id="oned">
  14.       <p>Panel One</p>
  15.    </div>
  16.    
  17.      <div id="twod">
  18.        <p>Panel Two</p>
  19.     </div>
  20.   
  21.       <div id="threed">
  22.        <p>Panel Three</p>
  23.   </div>
  24.  
  25.  </div><!--- close tabbed-content --->

  26.  <div data-role="popup" id="popupMenu" data-theme="b">
  27.         <ul data-role="listview" data-inset="true">
  28.             <li data-role="list-divider">Choose an action for this Person</li>
  29.             <li><a href="#">Cancel</a></li>
  30.             <li><a href="#">Reschedule</a></li>           
  31.             <li><a href="#">Deactivate</a></li>
  32.         </ul>
  33.     </div>