Avatar of LZ1
Flag for United States of America asked on

Jquery Tabs - Hiding all divs instead of just parent

Hey Experts!!

I have a basic tab code that I found online and I need to customize it a little bit.  
The tabs I have are pretty extensive with a lot of content inside them, including divs.  To see what I'm talking about go to the live url below and click on the Testimonials tab. There should be a YouTube video, description and a slider on the bottom. It's hiding all of the child divs in there and I need them to be shown when I click on the tab.

Ultimate Goal: If I have nested divs, I need to show all of them when the tab is clicked.  It's beyond my jquery knowledge.

Live URL: http://gator716.hostgator.com/~donjr/ 
Jquery is attached
	jQuery('#homevideo div').hide();
	jQuery('#homevideo div').hide();
	jQuery('#homevideo div:first').show();
	jQuery('#homevideo ul li:first').addClass('selected');
	jQuery('#homevideo ul.ui-tabs li a').click(function(){
	jQuery('#homevideo ul li').removeClass('selected');
	var currentTab = jQuery(this).attr('href');
		jQuery('#homevideo div').hide();
	return false;

Open in new window

JavaScriptJScriptWeb Languages and Standards

Avatar of undefined
Last Comment

8/22/2022 - Mon
David S.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thanks Kravimir. Works like a charm.  I didn't code or develop this project, it was dropped in my lap.  I'd much rather stay with Jquery than any other library, however it's a slow process.  My first task was re-writing the tabs on the home page.  Now that that's done, on to the next task.

Thanks again!
Your help has saved me hundreds of hours of internet surfing.