Jquery tabs control - how to select tab

MeroWolfbane

New Member
I have following html to show tabs control of jquery:\[code\]<div id="tabs" class="news1"> <ul> <li><a href="http://stackoverflow.com/questions/15459428/#tabs-1">Track</a></li> <li><a href="http://stackoverflow.com/questions/15459428/#tabs-2">History</a></li> </ul> <div id="tabs-1"> </div> <div id="tabs-2"> </div></div>\[/code\]On page load, following script is written:\[code\]<script>$(function() { $( "#tabs" ).tabs();});</script>\[/code\]On page load, tab-1 is selected by default. How can I Programmatically select tab-2 using JavaScript or jQuery?
 
Back
Top