I am not sure is possible or not but someone know suggest me if possible.
For example:
<a href="image/image.jpg"><img src="image/image.jpg" alt="image"/></a>
in this how to change the href path to another image dynamically using jquery. i.e.,
<a href="image/img.jpg"><img src="image/image.jpg" alt="image"/></a> like this.
EDITED: If
<a href="#"><img src="image/image.jpg"/></a>
<a href="http://stackoverflow.com"><img src="image/image.jpg"/></a>
<a href="image/image.jpg"><img src="image/image.jpg"/></a>
How can i vary this href attr that condition should satisfy only when the anchor tag of href link contain image. then the anchor text is should img tag.
Here is the JSFIDDLE: http://jsfiddle.net/HMsSE/9/ Any suggestion would be much appreciated.
Thanks, vicky