title: Jquery $("img").click(function() selector not working
body: <p>For some reason when I click on an image with this JQuery code the alert screen doesn't show up.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="example1"&gt;
   &lt;div&gt;
    &lt;div&gt;
     &lt;div class="user"&gt;
      &lt;img class="Image" src="images/image.jpg"&gt;
     &lt;/div&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>$(document).ready(function(){
   $("img").click(function(){
    alert("it works!");
   });
  });
  </code></pre>
  
  <p>I cant figure out why this isn't working I included the jquery library and the <code>&lt;script&gt;</code> tag is under the div</p>