JQuery Check for Class in ID ..if exists change img src content
<p>I have the code:</p>

<pre><code>&lt;img id="myid" class="myclass" src="image1.png" /&gt;
</code></pre>

<p>What I need to do is:</p>

<p>if myid contains a class="myclass" then change <code>src="image1.png" to src="image2.png"</code></p>

<p>How can I do that with JQuery?</p>
