JavaScript Obtenha o valor de entrada de texto
var inputValue = document.getElementById("myTextInputID").value;
Grepper
var inputValue = document.getElementById("myTextInputID").value;
const inputValue1 = document.getElementById('input-field-id').value;
function getFieldValue(){
let fieldValue = document.querySelector("input").value;
return fieldValue;
}
console.log(fieldValue);
let input = document.getElementById("myInput")
let value = input.value
document.getElementById("myText").value = "Johnny Bravo";