title: jQueryUI - handling 'click'\'select' event of an already selected tab
body: <p>I have a jQueryUI tabs object, and i want to handle the event of a tab being clicked, when is already selected.<br>
  using:</p>
  
  <pre><code>$("#tabs").tabs({
      select: function (event, ui) {
          onSelected();
      }
  });
  </code></pre>
  
  <p>I'm able to handle the event when the tab is first clicked (selected), but when i click it again - the handler isn't called.<br>
  is there any solution for that?</p>
  
  <hr>
  
  <p><strong>If not</strong> - another option that will suit my needs is the following:<br>
  define the tabs as collapsible, and collapse them by script (and not by user click).
  i define the tabs object as:</p>
  
  <pre><code>$("#tabs").tabs({
      collapsible: true
  });
  </code></pre>
  
  <p>but when i try to simulate a click using:</p>
  
  <pre><code>$("#tabs").tabs("select", 0);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$("#tab-link-0").trigger('click');
  </code></pre>
  
  <p>nothing happens.</p>
  
  <p>I need to point out that the tabs are added dynamically, using:</p>
  
  <pre><code>$("#tabs").tabs("add", "#tab-link-0", "title 0");
  </code></pre>
  
  <p>any ideas\suggestions for any of the cases?  </p>
  
  <p>Thanks,</p>