get value of dom element javascript code example Example: get value of element html js var value = document.getElementById("theInput").innerHTML;