adding a function in href using JQuery : <p>I've just added this piece of code in my JSP</p>

<pre><code>&lt;script type="text/javascript"&gt;    
    $('a').click( function(e) {
        e.preventDefault();
        alert ('hello');
        return false; } );
&lt;/script&gt;
</code></pre>

<p>but nothing happens when I click to a 
