Answers

Question and Answer:

  Home  JavaScript

⟩ How to get the contents of an input box using JavaScript?

Use the "value" property.

var myValue = window.document.getElementById("MyTextBox").value;

 159 views

More Questions for you: