title: how to select a particular tab from other page using anchor tag in JQuery..?
body: <p>I wonder if we can able to select a particular tab in a JQuery tab system from another page..? </p>
  
  <p>For example I have a 4 menus that is Home | About | Services | Contact
  In services page I have a tab system with 5 tabs(Flight, Hotels, International Flight, Rail, Bus) in it, so I'm coming to the point is one who select Bus link from the home page I need to display the Bus tab(default visible one is Flight) in services page.</p>
  
  <p>I have tried to give the bus link in home page like this..
  services.php#tab4 (like anchor tag method)</p>
  
  <p>unfortunately it doesn't work..</p>
  
  <p>Im using the following JQuery for my tab system..</p>
  
  <pre><code>$(document).ready(function() {
  
      //When page loads...
      $(".tab_content").hide(); //Hide all content
      $("ul.tabs li:first").addClass("active_pr").show(); //Activate first tab
      $(".tab_content:first").show(); //Show first tab content
  
      //On Click Event
      $("ul.tabs li").click(function() {
  
          $("ul.tabs li").removeClass("active"); //Remove any "active" class
          $(this).addClass("active"); //Add "active" class to selected tab
          $(".tab_content").hide(); //Hide all tab content
  
          var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
          $(activeTab).fadeIn(); //Fade in the active ID content
          return false;
      });
  
  });
  </code></pre>
  
  <p>tab links in services pages given in ul li like below</p>
  
  <pre><code>&lt;ul class="tabs"&gt;
          &lt;li&gt;&lt;a href="#tab1"&gt;Flight&lt;/li&gt;
          &lt;li&gt;&lt;a href="#tab2"&gt;Hotels&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#tab3"&gt;International Flight&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#tab4"&gt;Rail&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#tab5"&gt;Bus&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I hope that someone can answer the above question.</p>
  
  <p>Thanks</p>
  
  <p>Paul</p>