I have several images on a site with filenames like filename_mov.jpg
. The filename
part is what is dynamically generated, e.g: 123456abc_mov.jpg
.
I want the target this by searching for part of the filename, as _mov.jpg
is the only thing that’s consistent.
Using jQuery can I search for this?
I’ve tried:
$("img[src*='_mov.jpg']").addClass('movieThumb');
But it doesn’t work.