html dapatkan nilai kotak input dengan ID elemen

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