Code: Select all
<script type="text/javascript" charset="utf-8">
jQuery(function() {
jQuery('.primary-nav a').each(function() {
if (jQuery(this).attr('href') === window.location.pathname) {
jQuery(this).addClass('current');
}
});
});
</script>
It fails with Wishlist, My Account, Basket links even when stated as "href" instead of "<asp:HyperLink..."
I've tried a lot of different approaches and keep coming up empty. Any thoughts or suggestions would be greatly appreciated.