Expert JavaScript Developer Question:

Download Job Interview Questions and Answers PDF

How to get contents of an input box using JavaScript?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

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

Download Expert JavaScript Developer Interview Questions And Answers PDF

Previous QuestionNext Question
How to determine the state of a checkbox using JavaScript?How to set focus in an element using Javascript?