I forked your jsfiddle here: https://jsfiddle.net/g5t3xhj1/
It works, here's what I did:
- Updated your css to have active class on the a href instead of the li
- Updated your jQuery to remove all active classes on click and add it back to the one clicked only
HTML
<div class="Tabs">
<div id="tabs">
<ul>
<li>
<a class="active" href="#tab1">Information</a>
</li>
<li>
<a href="#tab2">Accounting</a>
</li>
<li>
<a href="#tab3">Tax Performance</a>
</li>
</ul>
</div>
<div id="tab1" class="tab" style="display:none">
<p>Tab 1 Content</p>
</div>
<div id="tab2" class="tab" style="display:none">
<p>Tab 2 Content</p>
</div>
<div id="tab3" class="tab" style="display:none">
<p>Tab 3 Content</p>
</div>
</div>
JS
$(document).ready(function() {
//Hide all Tabs on laod
$('.Tabs').tabs();
});
$('#tabs ul li a').click(function() {
$('#tabs ul li a').removeClass('active');
$(this).addClass('active');
});
CSS
li a.active {
color: red;
}
#tabs {
border-top: 1px solid silver;
border-bottom: 1px solid silver;
border-right: white;
background-color: #002750;
color: white;
}
#tabs ul {
padding: 6px 0 24px;
margin: 0;
}
#tabs ul li {
list-style-type: none;
float: left;
margin: 0 30px;
cursor: pointer;
}
#tabs ul li.Active a {
color: #b32218;
}
#tabs {
display: block;
}