get attribute value jquery href

JavaScript
var href = $(this).attr('href');
Source

Also in JavaScript: