How to target an image by part of its filename with jQuery
<p>I have several images on a site with filenames like <code>filename_mov.jpg</code>. The <code>filename</code> part is what is dynamically generated, e.g: <code>123456abc_mov.jpg</code>.</p>

<p>I want the target this by searching for part of the filename, as <code>_mov.jpg</code> is the only thing that’s consistent. </p>

<p>Using jQuery can I search for this?</p>

<p>I’ve tried:</p>

<pre><code>$("img[src*='_mov.jpg']").addClass('movieThumb');
</code></pre>

<p>But it doesn’t work.</p>
