How can I delete the style attribute in an img
tag?
<div id='someID'>
<p>
<img style="width: 585px;" src="somesrc">
</p>
</div>
Delete this: (just in JS and by tag)
<div id='someID'>
<p>
<img style="" src="somesrc">
</p>
</div>
I am trying something like $("#someID p img").removeAttribute("style");
but it is not working for me.