My goal is to gather the data-league
values from all of these divs and store them in an array.
https://i.sstatic.net/ratPH.png
What I aim to accomplish: Retrieve all those values, save them, then iterate through them to trigger a .click event on those divs.
I'm unsure if there's a simpler way to achieve this task.
I suppose it also needs to loop through the divs with ID=128 to extract the data-league values, correct?
Quite frankly, I am completely stuck, so any assistance would be greatly appreciated.
Thank you.
Additional information: Essentially, upon clicking a button, all those thumbnails should open in new tabs. Each tab representing a different stream. (Refer to the image)