Skip to content

Instantly share code, notes, and snippets.

@emilian
Created October 24, 2011 20:28
Show Gist options
  • Save emilian/1310090 to your computer and use it in GitHub Desktop.
Save emilian/1310090 to your computer and use it in GitHub Desktop.
Category
<script type="text/javascript">
var activeCategory = $("#CategoryHeading div h2").text();
$('.SideCategoryListClassic ul li a').each(function() {
if($(this).text()== activeCategory) {
$(this).css('background-color','#aaa');
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment