I need to know how do I change the links and images of a page via jQuery.
I have to do dynamic updates on a page and I need to create a script for this, which changes images and links.
Example:
<a href="link1"> <img src="imagem1"></a>
<a href="link2"> <img src="imagem2"></a>
Type, in this example I know that href
contains link1
, link2
and that tag img
contains imagem1
, imagem2
I need to know if I can create a script that captures the information that the user types and crawls tags and automatically converts.
Imagine that the user places a link link, in which case he would change the href link1
, the same would be for the images.