Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to replace div element with another in javascript

window.onload = function() {
  document.getElementById("to_be_replaced").innerHTML = "<span> gdfg </span>";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #div #element #javascript
ADD COMMENT
Topic
Name
4+7 =