Which JavaScript method is used to access an HTML element by id?
Options:
Explanation:
The JavaScript method
document.getElementById(id) is used to access an HTML document by id.
Tags:
JavaScript
Answer:
Which JavaScript method is used to access an HTML element by id getElementById(id).