JavaScript erhalten Element durch ID
var element = document.getElementById("YourElementId");
Batman
var element = document.getElementById("YourElementId");
document.getElementById("some_id");
const element = document.getElementById('id');
//or
const element = document.querySelector('#id');
var myElement=document.getElementById("someElementID");
var element = document.getElementById(id);