return document.getElementBy(id).value; code example Example: value from getelementbyid document.getElementById('numbers').value