I've got several rows of of separate jQuery Tabs. How do I get the separated tabs to close when another is opened (so at max, 1 is open at any given time on the page):
Markup:
<!-- First Leadership Row -->
<div id="leadershipTabs1" class="leadershipTabs leadershipContentContainer contentContainer clearfix">
<ul>
<li><a href="#leader1-slug">Leader 1 Tab Link</a></li>
<li><a href="#leader2-slug">Leader 2 Tab Link</a></li>
<li><a href="#leader3-slug">Leader 3 Tab Link</a></li>
<li><a href="#leader4-slug">Leader 4 Tab Link</a></li>
</ul>
<div id="leader1-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 1 Content Here --></div>
</div>
<div id="leader2-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 2 Content Here --></div>
</div>
<div id="leader3-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 3 Content Here --></div>
</div>
<div id="leader4-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 4 Content Here --></div>
</div>
</div><!-- #leadershipTabs -->
<!-- #First Leadership Row -->
<!-- Second Leadership Row -->
<div id="leadershipTabs2" class="leadershipTabs leadershipContentContainer contentContainer clearfix">
<ul>
<li><a href="#leader5-slug">Leader 5 Tab Link</a></li>
<li><a href="#leader6-slug">Leader 6 Tab Link</a></li>
<li><a href="#leader7-slug">Leader 7 Tab Link</a></li>
<li><a href="#leader8-slug">Leader 8 Tab Link</a></li>
</ul>
<div id="leader5-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 5 Content Here --></div>
</div>
<div id="leader6-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 6 Content Here --></div>
</div>
<div id="leader7-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 7 Content Here --></div>
</div>
<div id="leader8-slug" class="leaderPod">
<div class="leaderPodContent ctrContent"><!-- Leader 8 Content Here --></div>
</div>
</div><!-- #leadershipTabs -->
<!-- #Second Leadership Row -->
Firing the jQuery Tabs:
jQuery('.leadershipTabs').tabs({
active: false,
collapsible: true
});
The only problem I could find was that you were not including links inside the