javascript set input value by ID name code example Example: Javascript get text input value var inputValue = document.getElementById("myTextInputID").value;