title: Facing an issue in jquerymobile's multi page template stucture
body: <p>I am new to phonegap.I am using jquery mobile with html5 for developing android app.I have three pages in my app.First is index.html,it has the list of contents.Second page have the text content and a header with two buttons e.g. <strong>back</strong> and <strong>next</strong>.And third page is the same as the second page.Now my problem is that when i click on the first list element of the index.html it redirects the user to the second page.But when i click on the <strong>next</strong> button of the second page,it should open up the third page but nothing happens.</p>
  
  <p>Here is the for index.html:-</p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html&gt; 
      &lt;head&gt; 
      &lt;title&gt;Page Title&lt;/title&gt; 
  
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; 
  
      &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /&gt;
      &lt;script src="http://code.jquery.com/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8" src="phonegap-1.4.1.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt; 
  &lt;body&gt; 
  
  &lt;!-- Start of first page --&gt;
  &lt;div data-role="page" id="foo"&gt;
  
      &lt;div data-role="header"&gt;
          &lt;h1&gt;Beginning Android3&lt;/h1&gt;
      &lt;/div&gt;&lt;!-- /header --&gt;
  
      &lt;div data-role="content"&gt;   
  
          &lt;ul data-role="listview" data-inset="true" data-filter="true" data-divider-theme="e"&gt;
  
              &lt;li data-role="list-divider"&gt;Part 1:-Core Concept&lt;/li&gt;
              &lt;li&gt;&lt;a href="chapter1.html"&gt;1:-The Big Picture&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;2:-How to Get Started&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;3:-Your First Android Project&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;4:-Examining Your First Project&lt;/a&gt;&lt;/li&gt;
  
              &lt;li data-role="list-divider"&gt;Part 2:-Activities&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;5:-Rewriting Your First Project&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;6:-Using XML-Based Layouts&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;7:-Employing Basic Widgets&lt;/a&gt;&lt;/li&gt;
  
              &lt;li data-role="list-divider"&gt;Part 3:-Data Stores, Network Services, and APIs&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;8:-Using Preferences&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;9:-Managing and Accessing Local Databases&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;10:-Communicating via the Internet&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;&lt;!-- /content --&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and here's the second page:-</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  
  &lt;head&gt;
  
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; 
  &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" /&gt;
  &lt;script src="http://code.jquery.com/jquery-1.4.3.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div data-role="page" data-theme="b" id="page1"&gt;
  
      &lt;div data-role="header"&gt;
          &lt;h1&gt;The Big Picture&lt;/h1&gt;
          &lt;a data-rel="back" data-role="button" data-icon="back" data-theme="a"&gt;Back&lt;/a&gt;
          &lt;a href="#page2" data-role="button" data-icon="forward" data-theme="a"&gt;Next&lt;/a&gt;
      &lt;/div&gt;&lt;!-- /header --&gt;
  
      &lt;div data-role="content"&gt;   
  
      &lt;p&gt;Android is everywhere. Phones. Tablets. 
         TVs and set-top boxes powered by Google TV.Soon, 
         Android will be in cars and all sort of other places as well. 
         However, the general theme of Android devices will be smaller
         screens and/or no hardware keyboard. 
         &lt;/p&gt;
  
      &lt;/div&gt;  
  
      &lt;/div&gt;
  
  
  
      &lt;div data-role="page" data-theme="b" id="page2"&gt;
  
      &lt;div data-role="header"&gt;
          &lt;h1&gt;The Big Picture&lt;/h1&gt;
          &lt;a data-rel="back" data-role="button" data-icon="back" data-theme="a"&gt;Back&lt;/a&gt;
          &lt;a href="#" data-role="button" data-icon="forward" data-theme="a"&gt;Next&lt;/a&gt;
      &lt;/div&gt;&lt;!-- /header --&gt;
  
  
      &lt;div data-role="content"&gt;
  
      This is a sample about page.
  
      &lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;/body&gt;
  
      &lt;/html&gt;
  </code></pre>
  
  <p>i m using the multi page technique in second page.In second page I have two page with ids <strong>page1</strong> and <strong>page2</strong>.I am not able to redirect the <strong>page2</strong> from the <strong>page1</strong>'s next button on header.Help me get rid of these problem.Thanx in advance. </p>