Add a new image in jquery and make it clickable
<p>I am trying to add an image in jquery and then make it clickable I have maked the following code below but it does not work.</p>

<p>It adds the images but it will not make it clickable. </p>

<pre><code> $(".HeaderGifs").click(function() { 
 alert("It Works");
 }); 


 $("#show_images").val()).append("&lt;img class='HeaderGifs' src='images/text.jpg'&gt;&lt;/img&gt;");
</code></pre>
