Definition and Usage
Here, you can use the
getElementsByClassName( ) can be seen with the help of the below-stated example.
In the above example, it is shown that
getElementsByClassName also returns an ‘array-like object’ of all the provided child elements that possess all the given class names. Here when you will call on the ‘Document Object’, it will search a complete document that includes the ‘root node’ too.
As shown in the above example, state the