js get from element the id javascript code example
Example 1: js how to find element using id
element = document.querySelector("#id");
Example 2: how to get an element by id in javascript
document.getElementById("IdGoesHere");
element = document.querySelector("#id");
document.getElementById("IdGoesHere");