Currently, I am utilizing the .hide()
and .show()
functions to toggle the visibility of my page contents. Additionally, I am using the .HTML()
function to change the elements inside a specific div.
$('#wrap').html(' <span id="t-image"> </span> <span id="t-info"> </span>');
By executing this code snippet, the contents within the wrap
div will be replaced with
<span id="t-image"> </span> <span id="t-info"> </span>
.
Is there a method to revert back to the original contents that were previously stored in the wrap
div? Alternatively, are there any other techniques available that would allow for loading the previous contents later on?