JQuery - $(this).attr('name')
<p>I have a name attribute assigned to a hyperlink.
When I do the following in my JQuery link_name does not return anything.
Am I doing something wrong? </p>

<pre><code>    $("body").delegate("a", "click", function (event) {

    var link_name = $(this).attr('name');
    alert(link_name);
</code></pre>
