Hi, I'm new here, so forgive me if I'm missing something obvious, or
violating etiquette.

I'm trying the following code:

jQuery('.entry a:has( img )[href$={".jpg" || ".gif" ||
".png"}]').not('.download').attr('rel',
'popupgallery').addClass('something');

What I want it to do is to find in .entry all the <a> tags with <img>s
inside them, but I only want <a> tags with href attributes whose
values end in .jpg, .gif, or .png. And I want only those <a> tags
which do not have a class of 'download'.

So, in other words I want to find all the links that link to a larger
version of the image they contain (so, for instance a thumbnail which
links to a larger version).

It works except for the {".jpg" || ".gif" || ".png"} bit. How do I
check the href value against multiple possibilities?

Thanks!

Reply via email to