I see the "click" method with the tab. It takes 3 arguments:
"clicked tab, tab container to show, tab container to hide"

I do want to hide and show a tab's contents. This it's doing
automatically.
However, I also have ANOTHER panel/div that I would like to hide.

How would I do this?

Thanks!
Mike

On Jan 21, 9:22 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> On Jan 21, 1:22 am, MikeP <[EMAIL PROTECTED]> wrote:
>
> > Hello.
> > I'm using tabs to display lists of 
> > data.http://stilbuero.de/jquery/tabs_3/http://dev.jquery.com/view/trunk/ui...
>
> >  When you click on an item in the list, I display a div.
> > $('#problempanel').show();
>
> > If you click on another tab, I would like the div to hide.
>
> > How can I add this?
>
> > I tried an "onclick" event but then it goes to my function to hide the
> > div and doesn't run the tab function.
>
> > Thanks,
> > Mike
>
> The event/callback option is called "click", not "onclick". You can
> find a complete documentation for tabs 
> here:http://docs.jquery.com/UI/Tabs/tabs#initialoptions
>
> Try:
>
> $('#whatever').tabs({
>     click: function() {
>         $('#problempanel').hide();
>     }
>
> });
>
> --Klaus

Reply via email to