HOW TO GET THE CONTENTS OF AN INPUT BOX USING JAVASCRIPT?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
 1484  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    How to get the contents of an input box using JavaScript?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!