Handling events of HTML elements inserted by jQuery
<p>I currently have an anchor tag that, when clicked, appends another anchor tag to the DOM.  This is all done via jQuery. I know what the "id" attribute of the anchor tag to be added will be.  However, when I try the following code, it fails to handle the newly added anchor tag's click event:</p>

<p>$("#id").click(function() {
    alert("test");
});</p>
