I have multiple headings with mysite.com internal links like below:
Article 1 https://externalsite1.com/url1
I need to replace all the articles internal site links to their below external sites urls
I have tried this at here: http://jsfiddle.net/n4hwjrsq/2/ but no luck, please help me
$("a").each(function() {
var external_link = $("div.ptb_original_link").text();
$(this).attr('href',$(this).attr('href').replace('',external_link));
});
I expect the output with externalsite links like below :
Article 1 https://externalsite1.com/url1