jQuery find image by 'src' attribute - plain javascript
<p>By my own admission I have become quite a competent user of jQuery without much knowledge of the javascript that goes on behind it. </p>

<p>Just lately I have attempted to find a compromise when weighing up whether it is worth importing the jQuery framework for relatively small tasks. And as a learning exercise to attempt to a least think about how it could be achieved without jQuery.</p>

<p>I'm currently working on something where jQuery is not an option. (Large organisation with practices set in stone). </p>

<p>I am able to select an image using it's source with jQuery however could anyone explain how to do this in plain javaScript.</p>

<pre><code>$('img[src*="pic.gif"]').hide();
</code></pre>

<p>Many thanks
Gary</p>
