Searching the documentation for querySelectorAll() i got this:
A NodeList object, representing all elements in the document that matches the specified CSS selector(s). The NodeList is a static collection, meaning that changes in the DOM has NO effect in the collection. Throws a SYNTAX_ERR exception if the selector(s) is invalid.
What if you delete some elements. Then new elements appear (with the same class name as the old ones) due to dynamic html.
But now you want to access the new ones. Will i be able to rerun the querySelectorAll()? Or the old elements will be in the array?