I am wondering how to retrieve the orignial source code of a div if I've used

Code:
.html(something);
So let's say I set it to "some code here". and before i changed it, it was a form. is there any way to revert back to the original?