title: jQuery how to change img src path onclick?
body: <p>So basicly what I want to make is everytime you click on an image outside of the div "img-container" it changes the src path in "img-container" div. Came this far, now I don't know how to finish this code.</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>&lt;div class="img-container"&gt;
    &lt;img id="changeMe" src=""&gt;
  &lt;/div&gt;
  
  &lt;img src="images/preview-1.jpg"&gt;
  &lt;img src="images/preview-2.jpg"&gt;
  &lt;img src="images/preview-2.jpg"&gt;
  
  $('img').click(function(event) {
     alert($(this).attr('src'));
  });
  </code></pre>