MCQ Answer

How can you retrieve all the child elements of a specific DOM node?

How can you retrieve all the child elements of a specific DOM node?

आप किसी विशिष्ट DOM नोड के सभी चाइल्ड तत्वों को कैसे पुनः प्राप्त कर सकते हैं?
Topic : JS DOM Manipulation

A. element.getChildren()

B. element.childNodes

C. element.getElementsByTagName()

D. element.getChildNodes()




Correct Answer is :

B. element.childNodes



Explanation
The childNodes property returns a NodeList of child elements, including text nodes, comments, and elements. If you want only element nodes, you can use children instead.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz