TV's Frank
5
Q:

css getelementbyid

document.getElementById("some_id");
12
var myElement=document.getElementById("someElementID");
13

 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

Tags

New to Communities?

Join the community