On 20 Jan., 22:34, batfastad <[email protected]> wrote:
> Hi Klaus
> Thanks for that
>
> Unfortunately it's not working for me though
>
> Here's the code I'm trying...
> $(document).ready(function() {
>
>     // TABS BAR
>     $('#tabs').tabs({
>
>         select: function(event, ui) {
>             switch (ui.index) {
>             case 0:
>                 // first tab selected, do something
>                 break;
>             case 4:
>                 // second tab selected, do something
>                 alert('tab 5');
>                 break;
>             }
>         }
>     });
>
> });
>
> Any idea why it's not working?

No, unfortanetely not. Works fine for me, just tested.


> Also will it work if I put some jquery code like this... $
> ('.flexme2').flexigrid({height:'auto',striped:false});
> Which is an example from the flexigrid jquery plugin

You can put whatever JavaScript you like in a case block, and
generally into the select handler function body.

--Klaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to