node js document.getelementbyid code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: javascript getelementbyid
const element = document.getElementById('id');
//or
const element = document.querySelector('#id');
Example 3: get document by id
var element = document.getElementById(id);