select element by id in JS code example
Example 1: javascript get element by id
var element = document.getElementById("YourElementId");
Example 2: select element by id js
var element = document.getElementById(id);
var element = document.getElementById("YourElementId");
var element = document.getElementById(id);