title: jQuery Click() image
body: <p>Why isn't my click working</p>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function(){
      $('#slotclick').click(function(){
          $(this).append('&lt;div id=\"alertfade\"&gt;&lt;div class=\"alert\"&gt;Slotje&lt;font style=\"float:right;\"&gt;&lt;a href=\"#\" onclick=\"window.location.reload()\"&gt;X&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;');
      });
  
      $('#stickyclick').click(function(){
          $(this).append('&lt;div id=\"alertfade\"&gt;&lt;div class=\"alert\"&gt;Sticky&lt;font style=\"float:right;\"&gt;&lt;a href=\"#\" onclick=\"window.location.reload()\"&gt;X&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;');
      });
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;img src="./../../assets/images/icons/slot.png" id="slotclick"&gt;
  &lt;img src="./../../assets/images/icons/sticky.png" id="stickyclick"&gt; 
  </code></pre>
  
  <p>When it clicks, it has to open a alert window, Already done that with css!
  But if i click on a image Slot or sticky it wont open</p>