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

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

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


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

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response