title: onclick property in img tag in .append from jquery
body: <p>I'm trying to add some tags in a  from the js code</p>
  
  <p>I found an interesting function in jquery: append x)</p>
  
  <p>I got this in my .js:</p>
  
  <pre><code>function goClick(target) {
  }
  
  function clickChapDiv(event) {
       $(event.currentTarget.parentNode).append("&lt;span&gt; &lt;img src=\"../images/popUp.png\" /&gt; &lt;span class=\"textPopUp\"&gt; &lt;span class=\"notePopUp\"&gt;B-&lt;/span&gt; &lt;span class=\"titlePopUp\"&gt; 3-JE TESTES &lt;/span&gt; &lt;img src=\"../images/minigo.png\" class=\"buttonPopUp\" onclick=\"goClick(this);\" /&gt; &lt;/span&gt;");
  }
  </code></pre>
  
  <p>But this isn't working, if i remove the onclick=\"goClick(this);\", it's working but there is no event on the  (normal...)</p>
  
  <p>Is someone has an idea of my problem ? cause i saw some code on internet with onclick event in the .append and their code was working...</p>
  
  <p>Thanks for your futur answers</p>