Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript change element id

var element = document.getElementById("oldID");
element.id = "newID";
 
PREVIOUS NEXT
Tagged: #javascript #change #element #id
ADD COMMENT
Topic
Name
9+8 =