Expert JavaScript Developer Question:
How to get contents of an input box using JavaScript?
Answer:
Use the "value" property.
var myValue = window.document.getElementById("MyTextBox").value;
var myValue = window.document.getElementById("MyTextBox").value;
Previous Question | Next Question |
How to determine the state of a checkbox using JavaScript? | How to set focus in an element using Javascript? |