Home > DeveloperSection > Interviews > How to get the contents of an input box using JavaScript?

Posted on    March-18-2011 12:00 AM

 JavaScript JavaScript 
Ratings:
 1 Answer(s)
  1296  View(s)
Rate this:

Amit Singh

Total Post:565

Points:2825
Posted on    March-18-2011 12:00 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick