Modified Divs do not save their values โ€‹โ€‹on the back button

I have a form and some divs that I modify with jquery.

In the submit form, the user goes to another page.

Now, when the user clicks the back button, the modified divs are not saved. Only form values โ€‹โ€‹are saved.

What is the best way to save modified divs? Or at least there should be some kind of event that I can commit to the back button so that I can re-modify those divs.

Thank.

+3
source share
2 answers

: , , , , , , .

DOM "" HTML, "onload" ( DOM ready).

, , / div :

<input type="checkbox" id="myCheckBox" onclick="showHideMyDiv(this)">
<div id="myDiv"> ... </div>

(showHideMyDiv) window.onload ( window.onload) - , addEventListener/attachEvent , jQuery).

 window.onload = function() {
   showHideMyDiv(document.getElementbyId("myCheckBox"));
 }

, , , "".

+1

URL-. javascript - jquery:

http://tkyk.github.com/jquery-history-plugin/

, ( "" ), .

+1

All Articles