• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JQuery collapsible tabs

 
K Mansoor
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Background: I have a page with a bunch of panels, each panel displaying a JQuery tabs, each tabs may have 'n' tabs. Since a lot of information is displayed, users should be able to 'close' certain panel if they are not interested in the information.

I need to save the tabs' collapsible state to db (which is pretty straightforward). How does one find out the state? collapsed or not?


If there are three tabs within a tabs(), any click will trigger the 'select' event, how can one figure if the tab has been collapsed and not just another tab selected, the tab will collapse only if currently selected tab is clicked.

Any pointers will be highly appreciated.

 
K Mansoor
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it.

$(ui.panel).is(':visible')
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic