title: Persistent header in jQuery Mobile
body: <p>Couldn't figure out a way to put a bounty on my old question, so I'm reposting it because maybe it was a bug.</p>
  
  <p>Short version: I want a persistent header in a PhoneGap+JQM application that stays in-place (never moves) between page transitions like the footer can be designed to do.</p>
  
  <p>Long version: First off, I'm totally new to jQuery and JQM, so please point out any newb mistakes I've made.</p>
  
  <p>I'm trying to get a header that persists between different pages in the application. It would have to be like the persistent footer that stays in place whenever the user is transitioning between pages. The persistent footer was achieved using data-role="footer" data-id="(some consistent id)" data-position="fixed". It worked fairly well (random glitches with it getting misplaced then automatically fixing itself after a couple seconds). For more information on what I'm looking for, see "Persistent Footer" here:
  <a href="http://jquerymobile.com/test/docs/#/test/docs/toolbars/docs-footers.html" rel="noreferrer">http://jquerymobile.com/test/docs/#/test/docs/toolbars/docs-footers.html</a></p>
  
  <p>And see the example of the persistent footer at the link below. See how selecting an item in the footer transitions to a completely new page, yet the footer doesn't move:
  <a href="http://jquerymobile.com/test/docs/#/test/docs/toolbars/footer-persist-a.html" rel="noreferrer">http://jquerymobile.com/test/docs/#/test/docs/toolbars/footer-persist-a.html</a></p>
  
  <p>Now I'm trying to do the same thing, but I want it to be at the top of the application instead of the bottom. I've tried the following things:</p>
  
  <ul>
  <li>Shifting the footer to the top of the page (don't know what tag to catch in jQuery. Tried div.(jQuery class) utilizing several jQuery classes, but none work. I used FireBug to determine it is the "top" CSS attribute that needs to be changed.</li>
  </ul>
  
  <p>The HTML on each page:</p>
  
  <pre><code>&lt;div data-role="footer" data-position="fixed" data-id="header"&gt;
  &lt;img src="images/bgheader.png" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The JavaScript:</p>
  
  <pre><code>$('div.ui-footer').css('top', '0px');
  $('div.ui-footer-fixed').css('top', '0px');
  $('div.fade').css('top', '0px');
  $('div.ui-fixed-overlay').css('top', '0px');
  $('div.ui-bar-a').css('top', '0px');
  </code></pre>
  
  <ul>
  <li>Using data-role="header" (doesn't persist like the footer does). This method will create the header I want (because I overrode some of the CSS), but when I transition between pages, it won't maintain the header at the top. JQM documentation also does not state that they support persistent headers while it does state that it supports persistent footers:</li>
  </ul>
  
  <p>The HTML on each page:</p>
  
  <pre><code>&lt;div data-role="header" data-position="fixed" data-id="header" id="header" data-backbtn="false"&gt;
  &lt;img src="images/bgheader.png" /&gt;
  &lt;/div&gt;
  </code></pre>