Using jquery we can set the class of the tabs link or menu link to ‘active’ so we can highlight for the current page. the snippet is give below. It is achieved through jquery by iterating the links in the navigation bar or tabs and checking against the window.location.pathname

[sc:tcbox ]



<script src=”//”></script>

<style type=”text/css”>

.active {font-weight:bold;}



$(document).ready(function () {
//iterate through the links and verify against window.location.pathname
var loc_href = window.location.pathname;
$(‘#nav a’).each(function () {
if (loc_href == $(this).attr(‘href’)) {




<ul id=”nav” class=”tabs”>
<li><a href=”/” title=”Home” class=”active”>Home</a></li>
<li><a href=”/about/”>Products</a></li>
<li><a href=”/demo/”>Services</a></li>
<li><a href=”/contact/”>Contact Us</a></li>



[sc:/tcbox ]