I set some jQuery tabs to start with no tab selected as follows:
$('#tabs').tabs( { selected: -1 } );
Then I also have a separate link, which when clicked should deselect all the tabs.
$("#deselectButton").click(function(){ $('#tabs').tabs( 'select' , -1 ) });
or
$("#deselectButton").click(function(){ $('#tabs').tabs( 'selected' , -1 ) });
Clicking deselectButton deselects the contents of the tabs, however the tab header remains active with the class "ui-tabs-selected ui-state-active".
What is the right way to deselect all tabs?
Julian
source share