PrepAway - Latest Free Exam Questions & Answers

Which statement is true about the getElementByID() method?

Which statement is true about the getElementByID() method?

PrepAway - Latest Free Exam Questions & Answers

A.
It returns only the first element with the specified ID.

B.
It returns an array containing all elements with the specified ID.

C.
If a match is not found for the specified ID, it will attempt searching by name.

D.
If a match is not found for the specified ID, it will attempt searching by tag name.

Explanation:

PrepAway - Latest Free Exam Questions & Answers

Leave a Reply