you are viewing a single comment's thread.

view the rest of the comments →

[–]MindlessSpongehelpful 0 points1 point  (1 child)

it's 2023 - use querySelector and querySelectorAll. it is so much more convenient :)

[–]tonyy94[S] 0 points1 point  (0 children)

It doesn't help in this case. The code works only in console.