Q. Which DOM method selects an element by its ID?
β
Correct Answer: (A)
document.getElementById()
Explanation: getElementById returns a reference to the element with specified ID.