jQuery - Marking Current Link Active
Have you ever wanted to have a link show as “Active” when a users is on that link? If you have a navigation at the top of your site and you want to visually indicate that the visitor is on that link, then you would usually add and “active” class to that link and style it appropriately.
This little snippet of code will do that.
<code> $(document).ready(function(){ var path = location.