April 15, 2008

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

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

Subscribe to

Add to Google
Add to My Yahoo!
Subscribe Via Web Feed
kick it on DotNetKicks.com