jQueryとイベント取得this

イベントが発生した要素を取得するセレクター $(this)

$(function(){
$("a").click(function(){
$("要素").attr("src",$(this).attr("href")).attr("alt",$(this).text());
return false;
})
})

ASCIIjp jQuery UIデザイン入門

HTML5