Script Doesn't Detect Click on Created Element
<p>I have a function that creates a span element with a <code>removeme</code> class and inserts it into the DOM. I also attach a click event to all spans with a class of <code>removeme</code> that should delete the span created in the previous step. This is not working. The click event isn't firing and the span is not being removed.</p>

<pre><code>$('.createtext').click(function(){   
    $('&lt;span class="removeme"&gt;Remove text&lt;/span&gt;').appendTo($('#a1'));        
});

$('.removeme').click(function(){
    $('.removeme').remove();
});
</code></pre>

<p>I have an example here: <a href="http://jsfiddle.net/aagQE/" rel="nofollow">http://jsfiddle.net/aagQE/</a></p>
