This gets and stores the background color of a specific link:
var origColor = $("ul.relatedAlbums li a").css("background-color");
But there are a lot of those links, and I get the feeling that this is ineffecient. I imagine there's a way to tell the selector query to stop after the first match, and thus save on processing time. Here's how I imagine doing that:
var origColor = $("ul.relatedAlbums li a:first").css("background-color");
Is this the right / efficient way to do it? People say that using css pseudo classes is slow - but I'm not sure if that applies. This just has the same syntax, is that right?