If I have a bunch of links like this:
blah and this one and here is another
Trivially: $("a[href='http://foo.com']").addClass('foo'); But that assumes an exact match on the URL.
$("a[href='http://foo.com']").addClass('foo');