tags:

views:

28

answers:

1

hello i have just find this simple jquery tabbed menu: http://jqueryfordesigners.com/demo/tabs.html How can i add to it absolutes links to every content of the tabs? i explain: if for example the user enters http://xxxx.com/mypage.php#Second, the tab contents second should become tabbed(opened), is there a simple way for adding this features to this menu? regards

A: 

For this link (notice the lowercase "s" in "second" to match your example):

http://xxxx.com/mypage.php#second

Try this:

  // get the hash from the location
var tab = window.location.hash;

  // get the <a> element with the href that matches the location hash,
  //    and fire a click event on it
$('div.tabs ul.tabNavigation a[href=' + tab + ']').click();
patrick dw
Thanks for your help guys.regards.
tada
@tada - Did this resolve your issue? If so, please click the checkmark next to this answer. :o)
patrick dw