title: JQuery UI tabs: How do I navigate directly to a tab from another page?
body: <p>JQuery UI tabs are implemented by named anchors in an unordered list. When you hover over one of the tabs you can see this in the link shown at the foot of the browser:</p>
  
  <pre><code>http://mysite/product/3/#orders
  </code></pre>
  
  <p>Above would be the "orders" tab for example. JQuery obviously intercepts the click to this anchor and opens the tab instead. </p>
  
  <p>However if I bookmark the link above or link to it from elsewhere in the site the page does not open on the specific tab. </p>
  
  <p>In the tab initialisation block I was considering putting in some code that looks for a named anchor in the URL and, if it finds one, does an index lookup of the tabs and calls the select on it. This would mean it will still work with JS switched off.</p>
  
  <p>But is there an easier/nicer/better way?</p>