JQuery Onclick Change Image Src not refreshing the image
<p>I am using the code to change the image src with jquery:</p>

<pre><code>&lt;script&gt;
$(document).ready(function() {

$('#MyDiv').click(function() {
    $('#MyImageID').attr('src', 'image1.jpg');
});

});
&lt;/script&gt;
</code></pre>

<p>My problem is that although it's actually changed the src it's not actually showing the new image.</p>

<p>Does it have to refresh the image ?</p>

<p>How can I sort this?</p>
