$(".addressClick").click(function () { var addressValue = $(this).attr("href"); alert(addressValue ); });