Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Prevent link icon from adding to images Re: Prevent link icon from adding to images

#61575
noahgelman
Participant

.not(‘:img’) isn’t working because you aren’t applying it to the img, but the a tag around that image. Try using .not(‘:a img’). That way it’s excluding links with images in them.