var element = document.getElementById("YourElementId"); var value_element = document.getElementById("YourElementId").value;