I'm using the JQuery tabs plugin.
I'd like to link content within tab 1 to take me to tab 3 instead of having to click Tab 3 to get to it. How do I do this?
@redsquare... So, i modified it based on your suggestion that way I can make all the tabs interact with each other. This change works, thanks again, so I guess I'm wondering if there's a nicer way of writing this or is this the best way?
Demo with latest changes: http://jsbin.com/etoku3/
<script type="text/javascript">
$(document).ready(function() {
var $tabs = $("#container-1").tabs();
$('a.tab1').click(function(){$tabs.tabs('select', 0);});
$('a.tab2').click(function(){$tabs.tabs('select', 1);});
$('a.tab3').click(function(){$tabs.tabs('select', 2);});
$('a.tab4').click(function(){$tabs.tabs('select', 3);});
$('a.tab5').click(function(){$tabs.tabs('select', 4);});
});
</script>