I have been trying unsuccessfully to change the selected tab to another tab. Here is the scenario:
User has a page with a button on it followed by a tab container with 4 tabs. Tab number 4 is selected.
When user clicks on the button, I want tab number 1 to be selected.
This part works, in that it changes the selected value to tab number 1, but nothing happens in the browser to reflect the change:
var myTab4 = dojo.byId('tab4');
myTab4.setAttribute('selected','false');
var myTab1 = dojo.byId('tab1');
myTab1.setAttribute('selected','true');