get value of an element javascript code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: get value of element html js
var value = document.getElementById("theInput").innerHTML;