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 ...
-
I think you might want a look [here][1] [1]: stackoverflow.com/questions/2629939/… Hope this helpsRoger– Roger2013-03-29 06:34:00 +00:00Commented Mar 29, 2013 at 6:34
-
thanks ....but the link does seem to workuser1484793– user14847932013-03-29 08:17:45 +00:00Commented Mar 29, 2013 at 8:17
Add a comment
|
2 Answers
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
2 Comments
user1484793
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.
Suresh Atta
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.
You can do this
$( "#tabs" ).tabs( "destroy" );
1 Comment
user1484793
yes...m using this method only presently but was looking for a better method