Skip to content
EZ
4
Code
Fast Coding
Tools
AI Hub
Knowledge hub
Lifecycle
VPS
News
⌘K
EN
Home
Quizzes
JavaScript DOM Manipulation
JavaScript DOM Manipulation
DOM manipulation and event handling
intermediate
Question 1 of 7
Question 1 of 7
javascript
What is the method to get an element by id?
A
document.getElementById('id')
B
document.getById('id')
C
document.querySelector('#id') only for class
D
document.find('id')
All quizzes
Next