HTML Get Get Value de cuadro de entrada por ID de elemento

var x = document.getElementById("myText").value;
Ashamed Anaconda