Like a link is coming dynamically in a <code><div></code>
, Can I change domain name of all the hyperlinks.
For example:-
This is hyperlink link tag
<a href="http://onedomain.com/offers/testing-something/">
.
Can I change this to
<a href="http://seconddomain.com/offers/testing-something/">
dynamically with jquery. All other parameters in link should be same but on domain name should be changed. If it is possible then please explain how, I will be grateful to you.