Home »

How to get the contents of an input box using Javascript?

Question ListCategory: JavascriptHow to get the contents of an input box using Javascript?
ethanbrown author asked 9 years ago
1 Answers
adamemliy16 author answered 8 years ago

Use the “value” property.
var myValue = window.document.getElementById(“MyTextBox”).value;

Please login or Register to Submit Answer