transform img into backgtound img
how can do that with jquery
to go from here
- <div class="boximg"><img class="bgimg" scr="any.jpg" /></div>
to there
- <div class="boximg" style="background-image:url(any.jpg);">
- <img class="bgimg" style="display:none;" src="any.jpg" />
- </div>
all the .boximg will find .bgimg > jpg to make a background-image
thanks for your help