I have a situation where I'm wrapping an image with a span and I want to remove all the CSS from the image and apply it to the span. Is there a way to do this with JQuery?
JQuery:
$(img).wrap('<span />');
Style Sheet:
img { border: 5px solid red; padding: 10px; … needs to allow for anything }
I would like to do this with out editing the HTML or CSS. I need a way to truly remove the CSS from one element and place it on another.