javascript - Is it possible to save DOM manipulations in original HTML file? -
lets part of webpage is:
<p id = "para"></p>
and perform:
$("#para").text("hello world!");
now webpage becomes:
<p id = "para">hello world</p>
is there javascript
or jquery
method can save such dom manipulations performed in part of webpage these manipulations reappear when open webpage again?
in other words, can write these changed in html file?
edit: in reality want save form, grow larger , larger everyday use.
yes! can use localstorage (https://developer.mozilla.org/en-us/docs/web/api/storage/localstorage) store changes , may possibly use mutationobserver (https://developer.mozilla.org/en-us/docs/web/api/mutationobserver) monitor changes.
Comments
Post a Comment