javascript: Swap image & onClick
<pre><code>&lt;img src="logo.jpg" class="myImage" alt="Logotyp" /&gt;
</code></pre>

<p>This is my javascript code:</p>

<pre class="lang-js prettyprint-override"><code>$(function() {
    var windowWidth = $(window).width();
    if (windowWidth &lt;= 480) {
        $(".myImage").attr("src", "load.jpg");
    }
});
</code></pre>

<p>The image logo.jpg becomes load.jpg when window width = 480. Works fine. But I want an onClick-function that says when you click load.jpg it becomes logo.jpg again. Can't seem to make it work. Suggestions?</p>
