1. getElementsbyId()
  2. getElementbyId()
  3. both getElementsbyId() and getElementbyId()
  4. none of the mentioned

Share with your friends
AhmedNazir

Call

Answer: Option 2

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.

Talk Doctor Online in Bissoy App