M

Mr. Dubey • 85.38K Points
Coach

Q. Which of the following can be used to select HTML elements based on the value of their name attributes?

  • (A) getElementByName()
  • (B) getElementsByName()
  • (C) getElementsName()
  • (D) getElementName()

Explanation by: Mr. Dubey
To select HTML elements based on the value of their name attributes, you can use the getElementsByName() method of the Document object:

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics