How to get the contents of an input box using JavaScript?
Ask by Amit Singh
Updated 18 Sep 2020
var myValue = window.document.getElementById("MyTextBox").value;