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

 Posted by Bharathi Cherukuri on 6/29/2012 | Category: JavaScript Interview questions | Views: 3089 | 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