$('.description a:first-child img').addClass('icon_selected');

The first image is child of the first child (A element) of the DIV.
MaurĂ­cio


Hello,

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.
....
Martin

Reply via email to