title: jquery tab not selected after page reloaded using window.location.reload(url)
body: <p>When I click a refresh button on my page the page that reloads doesn't seem to be selectiung the first tab as it usually does with a refresh or reload page?</p>
  
  <p>My jquery tabs are set up as you'd normally find anywhere.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>&lt;head&gt;
      &lt;script type="text/javascript" src="js/jquery-1.4.2.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p><strong>tabs</strong></p>
  
  <pre><code>&lt;div class="tabs"&gt;
      &lt;ul class="tabNavigation"&gt;
          &lt;li&gt;&lt;a href="#priority"&gt;Priority&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#urgent"&gt;Urgent&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#potential"&gt;Potential&lt;/a&gt;&lt;/li&gt;
          &lt;li style="margin-left:75px"&gt;&amp;nbsp;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;div id="priority"&gt;
      &lt;/div&gt;
      &lt;div id="urgent"&gt;
      &lt;/div&gt;
      &lt;div id="potential"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Button call</strong></p>
  
  <pre><code> &lt;input type="button" id="btnRefresh" value="Refresh" onclick="do_refresh()"/&gt;
  </code></pre>
  
  <p><strong>do_refresh function</strong></p>
  
  <pre><code>function do_refresh()
  {
  var man_num = document.getElementById('txtOpCode').value;
  var ps=document.getElementById('drpSect').value;
  var url = "auto.php?v=l&amp;man_num="+man_num+"&amp;ps="+ps;
  window.location.reload(url);        
  }
  </code></pre>
  
  <p><strong>jQuery tabs function</strong></p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
  $(function () {
    var tabContainers = $('div.tabs &gt; div');
    tabContainers.hide().filter(':first').show();
    $('div.tabs ul.tabNavigation a').click(function () {
      tabContainers.hide();
      tabContainers.filter(this.hash).show();
      $('div.tabs ul.tabNavigation a').removeClass('selected');
            $(this).addClass('selected');
       return false;
      }).filter(':first').click();
          });
  &lt;/script&gt;
  </code></pre>