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()
πŸ’¬ Discuss
βœ… Correct Answer: (B) getElementsByName()
Explanation: To select HTML elements based on the value of their name attributes, you can use the getElementsByName() method of the Document object:
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:

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
162
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate