I have been trying out this jquery SliderTabs from this site "http://lopatin.github.com/sliderTabs/". Everything works fine, I'm just having issues using an outside link to go to a specific tab. Here is my following code:
<script>
$(function(){
$('#customers').sliderTabs();
if(document.location.hash!='') {
//get the index from URL hash
selectedTab = document.location.hash.substr(1,document.location.hash.length);
$("#customers").sliderTabs('select', selectTab - 1);
}
});
</script>
But it just doesn't seem to work for me. Could anyone help me with this?