jQuery: How to get the value of an html attribute?

$('a').click(function() {
    var title = $(this).attr('title');
    alert(title);
});

Leave a Comment