Expert JavaScript Developer Question:
Download Job Interview Questions and Answers PDF
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;
Download Expert JavaScript Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
How to determine the state of a checkbox using JavaScript? | How to set focus in an element using Javascript? |