[Solved] input.innerHTML returns an empty string


To get the value of a <input type="text" element, use .value rather than .innerHTML.

var textappend = document.getElementById("text").value;

1

solved input.innerHTML returns an empty string