html js elem value code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: js html tag valu
var value = document.getElementById("theInput").innerHTML;
var inputValue = document.getElementById("myTextInputID").value;
var value = document.getElementById("theInput").innerHTML;