Created
May 18, 2010 22:57
-
-
Save chardcastle/405691 to your computer and use it in GitHub Desktop.
Toggle selected link in pagination - JQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
$(".pagination") | |
.find("a") | |
.removeClass("selected") | |
.end() | |
.find("a[href="+$(this).attr("href")+"]") | |
.addClass("selected"); | |
})(jQuery) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment