Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to replace div element with another in javascript

window.onload = function() {
  document.getElementByClass("to_be_replaced").innerHTML = document.getElementByClass("replaced").innerHTML;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #div #element #javascript
ADD COMMENT
Topic
Name
2+6 =