How to select first Tab

How to select first Tab

Hello,

I have specifyed an function that is called in the select event.
this function make an validaten and should select the first tab
when validaten breaks. I want to do this with

  1. $('#mytab').tabs('select', 0);


with an 0 as index it does not work, with an higher index e.g. 2 or 3
it select the correct tab.

How can I select the first tab?

jquery: 1.3.2
jquery-ui: 1.7.2

Best Regards

Johannes Geppert