variable in document getelementbyid from list of elements code example Example: javascript get element by id var myElement=document.getElementById("someElementID");