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