change element text innerhtml keeping the elements or tags inside

Solutions on MaxInterview for change element text innerhtml keeping the elements or tags inside by the best coders in the world

showing results for - "change element text innerhtml keeping the elements or tags inside"
Pénélope
09 Oct 2019
1  document.getElementById("tagname").firstChild.data = text;