Home › Forums › JavaScript › Make Image Source the Background of an Element › Re: Make Image Source the Background of an Element
May 22, 2012 at 5:21 pm
#103281
TheDoc
Member
Here ya go!
http://jsfiddle.net/mrdw2/1/
$(document).ready(function() {
$('img').each(function() {
var imageURL = $(this).attr('src');
$(this).replaceWith('');
}):
});