Answers for "javascript set content in div without innerhtml"

0

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>";
Posted by: Guest on August-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language