Answers for "javascript change element tag"

6

javascript change element id

var element = document.getElementById("oldID");
element.id = "newID";
Posted by: Guest on June-02-2020
0

how to change html element in javascript

document.getElementbyid.innerHTML = "text";
Posted by: Guest on February-10-2021

Code answers related to "javascript change element tag"

Browse Popular Code Answers by Language