javascript edit dom element by id code example
Example 1: javascript element edit value
// example:
document.querySelector(`.guess`).value = 42;
// syntax:
// <element-select>.value = <new-value>;
Example 2: javascript change element id
var element = document.getElementById("oldID");
element.id = "newID";