how to get value of html tag in javascript code example Example: js html tag valu var value = document.getElementById("theInput").innerHTML;