title: How do you test whether a tab is active with dojo tabs
body: <p>How do you test whether a tab is active or not with a dojo tab container?   (In JQuery this is simple... you can use something like this </p>
  
  <pre><code>if($("#accordion").accordion('option', 'active') == mytabNumber){
  </code></pre>
  
  <p>With dojo's, dijit.layout.TabContainer  there must be a similiar way to do it without having to write a litener function and all that jazz.</p>
  
  <p>perhaps something like...</p>
  
  <pre><code>if( dojo.byId("tab2"), {selected:true} ){
  </code></pre>
  
  <p>Thanks in advance!</p>