Skip to content

Instantly share code, notes, and snippets.

@zachharkey
Created June 7, 2010 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachharkey/428969 to your computer and use it in GitHub Desktop.
Save zachharkey/428969 to your computer and use it in GitHub Desktop.
var currentpath = location.pathname;
$('.block a[@href="' + currentpath + '"]').parent().addClass('current');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment