document.querySelectorAll Crashes the script
document.querySelectorAll('.playableTile__heading').forEach(el => el.style.background = 'red');
This is better though https://pastebin.com/raw/0w0LXFhh
document.querySelectorAll('.playableTile__heading').forEach(el => el.style.background = 'red');
This is better though https://pastebin.com/raw/0w0LXFhh
Hi, I'm trying to select all the element in a page that have the ".playableTile__heading" tag, but if i use just the querySelector it only selects the first element, and if i try using querySelectorAll the script doesn't load.
Is there any way i could make this work? My final goal is to save an array with innerHtml of these elements.