Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript set content in div without innerhtml

var MyDiv1 = document.getElementsByClassName('page-title');      // une autre DIV display:none;
var MyDiv2 = document.getElementsByClassName('entry-summary');   // le DIV target
    MyDiv2[0].childNodes[0].nodeValue = "<p class='Title-prod-msk'>"+MyDiv1[0].innerHTML+"</p>";
 
PREVIOUS NEXT
Tagged: #javascript #set #content #div #innerhtml
ADD COMMENT
Topic
Name
8+2 =