reset div jquery 1

reset div jquery

/* Answer to: "reset div jquery" */

var originalState = $("#some_div").html();

  Check here (source) for more information and potentially better solutions:

Here is what the above code is Doing:
1. It’s saving the original state of the div in a variable.
2. It’s then setting the div’s html to the original state.

Similar Posts