Advertisement
Guest User

Adding back button to a nested listview

a guest
Apr 19th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.95 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>gmjones.org</title>
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
  7.     <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
  8.     <script type="text/javascript">
  9.         $(document).bind("mobileinit", function() {
  10.             $.mobile.page.prototype.options.addBackBtn = true;
  11.         });    
  12.     </script>  
  13.     <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
  14.        
  15. </head>
  16. <body>
  17.     <div data-role="content">
  18.         <ul data-role="listview" data-inset="true">
  19.             <li>Level 1
  20.                 <ul>
  21.                     <li>Level 2
  22.                         <ul>
  23.                             <li><a href="#">Level 3</a></li>
  24.                         </ul>
  25.                     </li>
  26.                 </ul>
  27.             </li>
  28.         </ul>
  29.     </div>
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement