I’m using following script to mark current page with a.active on the URL.
$(function () {
var menus = $('#menu >li > a');
menus.removeClass('active');
var matches = menus.filter(function () {
return document.location.href.indexOf(this.href) >= 0;
});
matches.addClass('active');
});
I have following website: website
As we can it does work on all menu items exept ‘massage treatments’ – why??
Any help much appreciated. Pete
I guess
<script type="text/javascript" src="js/index.js"></script>is missing on the ‘massage treatments’ page