Is there a way to use javascript to remove all changes that javascript has made to an element's css?
- by Razor Storm
For example,
<html>
<body>
<img id="pic" src="original.jpg"/>
</body>
</html>
In Javascript (jQuery):
$("#pic").attr("src","newpic.jpg");
Now, is there a way to reset #pic's src to original.jpg without explicitly setting it as $("#pic").attr("src","original.jpg");?