Answers for "html text input to var"

1

How to save input from box html

function getInputFromTextBox() {
    var input = document.getElementById("userInput").value;
    alert(input);
}
Posted by: Guest on October-07-2020
6

get value from textbox in vanilla javascript

document.getElementById("myText").value = "Johnny Bravo";
Posted by: Guest on May-25-2020

Browse Popular Code Answers by Language