142
rated 0 times
[
149]
[
7]
/ answers: 1 / hits: 28580
/ 7 Years ago, fri, march 17, 2017, 12:00:00
I have lots of pages with lots of links. I want to replace some specific links with another link.
what I wish to do here is find the href
attribute of <a>
and replace it with desired link
Here is the HTML code
<div class=one>
<div class=item>
<a href=somelink.com>click</a>
</div>
</div>
and I want to change HTML to
<div class=one>
<div class=item>
<a href=replacedlink.com>click</a>
</div>
</div>
More From » jquery