when i change href using jquery it is not working 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");
var href = $(this).attr('href');
$("#someAnchorElement").attr("href", "http://www.myfancynewurl.com");