Tested on

Example

Click Me

$("#link").click( function() {
	var a = $(this).attr('href');
	alert( a );
});