The dataset Id is linked to the image. Suppose I have assigned different dataset Id values to a set of divs, how can I gather these values and create an array with them collectively?
I attempted to loop through them as they all have the same class name, but it only returns individual arrays instead of one combined array. Using array.from() won't work either because it will just break down the string into separate characters. Any suggestions on how I should proceed?