Link into picture - jQuery -
what easiest way change element:
<a href="pic.png">
into:
<img src="pic.png">
use replacewith
$('a').replacewith(function() { return $('<img/>').attr('src', this.href); });
replace 'a'
selector links need replaced.
Comments
Post a Comment