value from element by id code example Example: how to get element by id document.getElementById("demo");