jquery get link href value code example
Example 1: get attribute value jquery href
var href = $(this).attr('href');
Example 2: jQuery change href value
$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");
Example 3: jquery get link href value
$("#mylink").attr("href");