Get the value of the value attribute of a hidden input field: var x = document.getElementById("myInput").value;. The result of x will be: W3Schools.
確定! 回上一頁