Asign click handler to newly appended elements
<p>How does one go about adding a click handler in the following example? I need to assign it to the newly appended anchor element.</p>

<pre><code>$.each(regions1, function(key, value) { 

    var coords = regions1[key].rel.split('-');
    $("#map").append("&lt;a href='javascript:void(0)' id='"+ regions1[key].id +"' class='bullet' style='left: "+ addpx(Number(coords[0]) - rempx(settings.bulletWidthOffset)) +"; top: "+ addpx(Number(coords[1]) - rempx(settings.bulletHeightOffset)) +"'&gt;&amp;nbsp;&lt;/a&gt; ")

    //.click(function(){showPopup(regions1[key].id);})

});
</code></pre>

<p>Cheers</p>
