troubleshooting Question

Jquery Tabs - Hiding all divs instead of just parent

Avatar of LZ1
LZ1Flag for United States of America asked on
Web Languages and StandardsJavaScriptJScript
2 Comments1 Solution460 ViewsLast Modified:
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.noConflict();
jQuery(document).ready(function(){
	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');
	jQuery(this).parent().addClass('selected');
	var currentTab = jQuery(this).attr('href');
		jQuery('#homevideo div').hide();
		jQuery(currentTab).children().show();
	return false;
	});
});
ASKER CERTIFIED SOLUTION
David S.
Consultant & Challenge Subduer
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros