JavaScript Get Element by ID
var element = document.getElementById("YourElementId");
Batman
var element = document.getElementById("YourElementId");
document.getElementById("someid");
document.getElementById('numbers').value
document.getElementById("some_id");
const element = document.getElementById('id');
//or
const element = document.querySelector('#id');
function myFunc(variable){
var s= document.getElementById(variable);
s.value = 'New value'
}