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
2010-07-03 00:52:46
Thanks for your help guys.regards.
tada
2010-07-03 02:08:49
@tada - Did this resolve your issue? If so, please click the checkmark next to this answer. :o)
patrick dw
2010-08-24 18:18:18