Is there a way to use javascript to remove all changes that javascript has made to an element's css?
Posted
by Razor Storm
on Stack Overflow
See other posts from Stack Overflow
or by Razor Storm
Published on 2010-04-22T04:03:00Z
Indexed on
2010/04/22
4:13 UTC
Read the original article
Hit count: 243
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");
?
© Stack Overflow or respective owner