getelementbyid javascript html example
Example 1: js getelementbyid
document.getElementById("some_id");
Example 2: javascript getelementbyid
const element = document.getElementById('id');
//or
const element = document.querySelector('#id');
document.getElementById("some_id");
const element = document.getElementById('id');
//or
const element = document.querySelector('#id');