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");?
No, there is no way to reset without reassigning it, since you already changed the DOM.
But if you attach a class using .addClass, then you could use .removeClass to reset that.