I need to link to each of the product tabs (reviews and a few different tabs I'll be adding) from a menu that I'll be putting in the header. I know this can be done, as there are numerous explanations about how to using the jquery tabs.js script. However, no matter which way I try it simply won't work for me. Here's the code I'm using:
Code: Select all
<script type="text/javascript">
$(document).ready(function(){
var $tabs = $('#tabs').tabs(); // first tab selected
$('#tab-review').click(function() { // bind click event to link
$tabs.tabs('select', 2); // switch to third tab
return false;
});
});
</script>
Code: Select all
<a href="desktops/mac?product_id=41/#tab-review">Reviews</a>
Any help most appreciated.
Cheers,
Dan
ps. I'm using version 1.5.2.1