$("img") .removeAttr("width") .removeAttr("height"); <img src="images/jQueryCheatsheet.png" alt="jQuery Cheatsheet" width="120" height="80" />