title: Loading Jquery tab from maphilight href
body: <p>I have seen many threads about this online but none seem to provide a workable solution. I am simply trying to toggle different tabs in a Jquery UI tabs widget with an external href</p>
  
  <p>The closest I feel I have got with this problem was with this solution, pasted below, which does not seem to work:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function(){
      $('#tabs2').tabs();
  
      $('.open-tab').click(function(event) {
          var tab = $(this).attr('href');
          $('#tabs2').tabs('select', tab);
    });
   });
  
  
    &lt;/script&gt;
  
  &lt;div id="tabs2"&gt;
  
  
            &lt;ul&gt;
                      &lt;li&gt;&lt;a href="#tabs2-1"&gt;Tab header 1&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#tabs2-2"&gt;Tab header 2&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#tabs2-3"&gt;Tab header 3&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#tabs2-4"&gt;Tab header 4&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#tabs2-5"&gt;Tab header 5&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
  
  
    &lt;div id="tabs2-1"&gt;
    Tab Content 1
    &lt;/div&gt;
    &lt;div id="tabs2-2"&gt;
    Tab Content 2
    &lt;/div&gt;
    &lt;div id="tabs2-3"&gt;
    Tab content 3
  
    &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>The reason I want to load the tabs with external hrefs is because I will be loading the tab from a david lynch maphilight utility. An example of such a link is as follows:</p>
  
  <pre><code> &lt;area class="EU"  shape="poly" title="France" href="#tabs2-1"  coords="353,108,345,107,345,104,347,100,345,96,342,94,339,92,339,91,345,91,345,89,348,90,351,88,353,85,359,88,366,91,366,92,362,97,363,99,362,99,365,103,362,106,358,105,354,106,353,108"&gt;
  </code></pre>
  
  <p>As you can see from above the href gives you the ID of the link, so I don't want an indexed solution... Any help would be greatly appreciated as I am slowly but surely starting to lose my sanity and I think I have already broken the enter key :-) Thanks in advance!</p>
  
  <p>Jsfiddle: <a href="http://jsfiddle.net/Guill84/spyt9/" rel="nofollow">http://jsfiddle.net/Guill84/spyt9/</a></p>