0

I am using jquery tabs to present some data , I want to give user an option to choose if she/he wants it to be displayed as tabs or in one after another. When the user selects from a drop down how she/he wants to view I remove/add the ui-tabs classes but this approach doesnot seem to work. There is also one workaround to destroy and create it on every call but I suppose this is not a good approach. Can any one suggest me what to do ...

2
  • I think you might want a look [here][1] [1]: stackoverflow.com/questions/2629939/… Hope this helps Commented Mar 29, 2013 at 6:34
  • thanks ....but the link does seem to work Commented Mar 29, 2013 at 8:17

2 Answers 2

0

Have you tried

$('#tabsDiv').tabs('disable', 1); //where 1 is the tab number

or apply a class on specific tab

.ui-tabs-disabled {
    display: none; 
} 

Refer this link for more info

Sign up to request clarification or add additional context in comments.

2 Comments

but this will hide my content as well....i want content of the tabs to come one after another just the same as if there were not tabs.
Then you have to do somethings other than only dealing with tabs.like when tabs hiding getting those content and appending to another tab something like that.
0

You can do this

$( "#tabs" ).tabs( "destroy" );

1 Comment

yes...m using this method only presently but was looking for a better method

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.