Problem with click function in JQuery
<p>I have a link appended to a div element. And on clicking the link, I want a function to be executed.In order to check if the function is called, when I click the link, i had an alert box in that function. But no alert box is appearing if I click the link?</p>

<p>This is the link added to the div element 'fb<code>_</code>contentarea<code>_</code>col2top'.</p>

<pre><code>$("&lt;p class='title2'&gt;Recent Entries | &lt;a id='actions' href='#'&gt;Actions&lt;/a&gt; &lt;/p&gt;").appendTo("#fb_contentarea_col2top");
</code></pre>

<p>When I click this link, I want this function to be called,</p>

<pre><code>$('#actions').click(function (){
 alert("HI");

});
</code></pre>

<p>But the alert does not come. What is the mistake I am doing?</p>
