Antwort How to get a list of elements in JavaScript? Weitere Antworten – How to get list of elements in JavaScript
If you want to find all HTML elements that match a specified CSS selector (id, class names, types, attributes, values of attributes, etc), use the querySelectorAll() method. This example returns a list of all <p> elements with class="intro" .Document: getElementsByClassName() method When called on the document object, the complete document is searched, including the root […]