Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reset div jquery

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

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

/*
  Check here (source) for more information and potentially better solutions:
  https://stackoverflow.com/questions/5557641/how-can-i-reset-div-to-its-original-state-after-it-has-been-modified-by-java
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reset #div #jquery
ADD COMMENT
Topic
Name
2+9 =