CIW
1D0-635 · Question #34
1D0-635 Question #34: Real Exam Question with Answer & Explanation
The correct answer is A. It returns only the first element with the specified ID.. See the full explanation below for the reasoning.
Question
Which statement is true about the getElementByID() method?
Options
- AIt returns only the first element with the specified ID.
- BIt returns an array containing all elements with the specified ID.
- CIf a match is not found for the specified ID, it will attempt searching by name.
- DIf a match is not found for the specified ID, it will attempt searching by tag name.
Community Discussion
No community discussion yet for this question.