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/current/ui.tabs.js > > 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