Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering only partial view for ajax tabs #11

Closed
jdk2588 opened this issue May 29, 2012 · 1 comment
Closed

Rendering only partial view for ajax tabs #11

jdk2588 opened this issue May 29, 2012 · 1 comment

Comments

@jdk2588
Copy link

jdk2588 commented May 29, 2012

I am trying to implement better tabs and I need to use ajax tabs, so for my application, if I have three tabs
:tabs1, :tabs2, :tabs3 (all of them are of ajax types)
when I click on the tabs2 , the content of tabs1 doesn't hide , instead it stays on the page , how can I have where the content of previous tabs get removed after I click on the next tab and it shows only the content of next tab.

Thanks

@marioizquierdo
Copy link
Owner

Hi @jdk2588

It looks like you are just missing the basic CSS.
The bettertabs jquery plugin will not hide the non active content, but add the "hide" CSS class instead.
You have to add at least this rule in your stylesheets:

.bettertabs .content.hidden { display: none; }

Please take a look at the CSS reference guide for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants