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