document.getElementById('examGradeInput').value code example Example: getelementbyid document.getElementById("someid");