Skip to content

Instantly share code, notes, and snippets.

@shuding
Created March 3, 2015 18:19
Show Gist options
  • Save shuding/c2c892816b3169367e31 to your computer and use it in GitHub Desktop.
Save shuding/c2c892816b3169367e31 to your computer and use it in GitHub Desktop.
$("#post-index a:nth-child(-2n+7)").click(function() {
$('*').removeClass('current')
$(this).addClass('current')
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment