title: jquery mobile navbar refresh
body: <p>I have a jquery mobile navbar in my mobile application and for the first time I have ui-active for the first tab and it is active.Now if I select the second tab and then go back to the previous page and come to this page the selected tab is one but the content displayed was second tab's content. How to resolve this . Below is my HTML code</p>
  
  <pre><code> &lt;div data-role="tabs" id="tabs"&gt;
  
                      &lt;div data-role="navbar" id="navbar1"&gt;
                          &lt;ul&gt;
                              &lt;li&gt;
                                  &lt;a class="ui-btn-active ui-state-persist" data-ajax="false" href="#one"&gt;MapView&lt;/a&gt;
                              &lt;/li&gt; 
                              &lt;li&gt;
                                  &lt;a data-ajax="false" href="#two"&gt;Available Seats&lt;/a&gt;
                              &lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt; 
  &lt;div class="ui-body-d ui-content" id="two"&gt;
  &lt;p&gt;in second tab&lt;/p&gt;
  &lt;/div&gt;
   &lt;div id="one"&gt; 
  &lt;p&gt;in first tab&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>is there anyway to refresh the navbar whenever it comes visible.</p>