get value in tag with id JS

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

Source

Also in JavaScript: