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

 Posted by Bharathi Cherukuri on 6/29/2012 | Category: JavaScript Interview questions | Views: 2351 | Points: 40
Answer:

By using the "value" property, you can get the contents of an input box.

Example:

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


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response