Hi, I just realize that your code works fine. It's verbose but works to me.
I am looking for some guidance on how to achieve a simple objective. I have multiple <DIV> elements on a page, and within each <DIV> there are 4 <A> elements. Within each <A> there is an <IMG>. My goal is to apply a class to each of these <IMG> upon rendering the page.
$("div.description a.colour:first-child img.icon").addClass("icon_selected"); but that does not work.

