title: Change event.target src attr in JavaScript
body: <p>On clicking image I want to change its src attribute using <code>event.target</code>.</p>
  
  <p>I am trying to achieve the same using below code but it is not working; where am I going wrong?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(".sim-row-edit-img").click(function(){
   alert("Image clicked");
   $("event.target").attr("src","https://cdn.iconscout.com/icon/free/png-256/car-location-find-navigate-gps-location-29571.png");
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;img class="sim-row-edit-img" border="0" alt="W3Schools" src="http://icons.iconarchive.com/icons/dtafalonso/android-l/256/WhatsApp-icon.png" width="100" height="100"&gt;</code></pre>
  </div>
  </div>
  </p>