Can I call a jquery function from a click?
<p>I am trying to do something similar to the alert box that we get here on SO when we get new comments and answers, the orange box that sticks to the top of the screen, I have something similar but I am trying to get an X close link on it, to close it on click</p>

<p>Here is what I have but it is giving me errors saying the close_error_click() is not defined?</p>

<pre><code>&lt;script type="text/javascript" &gt;
function close_error_click(){
    $("#notify-container").fadeOut("slow", function () {
    $("#notify-container").remove();
}
&lt;/script&gt;

&lt;div id="notify-container"&gt;
some other code here
&lt;a onclick="close_error_click" title="dismiss this notification"&gt;×&lt;/a&gt;
&lt;/div&gt;
</code></pre>
