Remove .find('li')
.
You don't need that as the click event is fired on the li element. So $(this)
IS the li element.
Then you do:
$('#Info-Side-Tabs li').click(function() {
$('#Info-Side-Tabs li').removeClass("current");
$(this).addClass("current");
$('#tab-content div').hide();
var href = $(this).find('a').attr("href");
$('#tab-content div' + href).fadeIn()
});
That works for me, other than there being no "#tab2" and "#tab3" content divs. The index code wouldnt work because the index is numerical and you are trying to match a content div, it won't match because the divs have string id's
Edit
You can show all child elements using the following:
$('#tab-content div' + href).fadeIn().find('*').show();
Edit 2
The :last
selector is finding the deepest div element inside #tab-content
and showing it, which is: <div id="Social-Fun" style="display: none;">
That's why you don't see anything.
You could add a class to each div, something like class='country'
and then you could do:
$('#tab-content div.country').last().show()