This works:
$('a[href$="' + currenturl2 + '"]').css("font-family", "\'Apercu Bold\'");
But there's two links on the page with that (variable) href. How do I apply it to one of them?
I've tried:
$('li a[href$="' + currenturl2 + '"]').css("font-family", "\'Apercu Bold\'");
And:
$('#recent-posts a[href$="' + currenturl2 + '"]').css("font-family", "\'Apercu Bold\'");
(where #recent-posts
is the ul of the li s)
And:
$('#tunesID a[href$="' + currenturl2 + '"]').css("font-family", "\'Apercu Bold\'");
(where #tunesID
is the parent element of the URL)