find image src that :contains?
You need to use the *= selector: jQuery(‘#preload img[src*=”green”]’) If you want it to be case insensitive, it will be a bit more difficult: var keyword = “green”; $(“#preload img”).filter(function(keyword) { return $(this).attr(“src”).toLowerCase().indexOf(keyword.toLowerCase()) != -1; });