Q:

js getelementbyid

document.getElementById("some_id");
12
document.getElementById("someid");
19

 var x = document.getElementById("demo");   // Get the element with id="demo"
x.style.color = "red";                     // Change the color of the element 
1
const element = document.getElementById('id');
0

 document.getElementById("demo");

 
0

New to Communities?

Join the community