Hi, I have a need to save content of a <div id="test"></div> to some global variables and re-load it sometime later, possible with jQuery? thanks. A.C.
Of course. var divContent; function saveDivContent() { divContent = $("#test").html(); } function doSomethingWithTheSavedContent() { alert(divContent); } But, be careful if the div content contains a form with dynamically created elements. I've had trouble with saving those in the past.
Hi, Thanks, what I want to do is, a list of items displayed in the div, if user click one of them, it will be erased and replaced with form, and later restore the list of items when done, possible?