D
D
Disrespector2020-05-12 21:01:24
JavaScript
Disrespector, 2020-05-12 21:01:24

How to get the values ​​of all elements with the same class?

There is a page on which there are many elements with the same classes, from which you need to extract the values ​​of the classes "data-id=", "data-float=", "data-original-title" for each element separately. I tried to display at least for one element, but I constantly received various errors, because there is not enough experience. I will be very grateful for your help. Screenshot of the page structure below.5ebae469b681e869492989.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vearodev, 2020-05-12
@Vearodev

Getting date attributes is not a problem, the question is, what are you going to do with this data? compare? summarize? How do you want to understand which data belongs to which element in a general array? or is it not important? For example, I did it by index
ps, you need to open the console to see the result
Simple example: (because I didn’t understand what result is needed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question