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