How to pick a document element based on the value of its id attribute?
A. getElementsbyId()
B. getElementbyId()
C. both getElementsbyId() and getElementbyId()
D. none of the mentioned
Answer: Option B
Solution(By Examveda Team)
The Document object has important methods such as getElementById(), which returns a single document element (representing an open/close pair of HTML tags and all of the content between them) based on the value of its id attribute.Join The Discussion
Comments ( 1 )
Related Questions on Server Side and Client Side Scripting
What are the events generated by the Node objects called?
A. generators
B. emitters
C. dispatchers
D. highevents
What is the function used to deregister event handler ‘f’?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
What is the function used to remove all handlers for name events?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
The correct answer is: D - None of the mentioned