jQuery Event for link click not firing
<p>I have the following function:</p>

<pre><code>  $("a#mylink").click(function(e){
            e.preventDefault(); 
            $.ajax({ url: $(this).attr("href") }); 
            $(this).parent().parent().fadeOut("slow");
          });
</code></pre>

<p>A link is being created on the page with the following code:</p>

<pre><code>'&lt;div  style="margin-top: 4px; border: solid 2px #515151; color: #515151; width: 300px;"&gt;&lt;span style="padding-left: 4px"&gt;' +
                file.name+
                '    &lt;/span&gt;&lt;div style="float: right; padding-right: 4px;"&gt;&lt;a class="mylink" href="remove.aspx?img='+safeUrl+'"&gt;Remove&lt;/a&gt;&lt;/div&gt;' +
                '&lt;/div&gt;'
</code></pre>

<p>When I click the link, a new page pops up and it does not hit my function.  Any ideas?</p>
