I have a name attribute assigned to a hyperlink.
When I do the following with jQuery link_name does not return anything.
Am I doing something wrong?
$("body").delegate("a", "click", function (event) {
var link_name = $(this).attr('name');
alert(link_name);
I’d use this (using newest jQuery):