This seems to work.

$('elements').filter(function(){
   return $(this).css('backgroundImage').indexOf('.png')+1;
});

Out of curiosity, are you trying to deal with png transparency in IE6?

On Jan 7, 4:29 pm, _cam_ <[email protected]> wrote:
> How would you select elements that have CSS background images ending
> with .png? And then add a class.

Reply via email to