L
L
leonardogun2019-10-10 14:33:56
Parsing
leonardogun, 2019-10-10 14:33:56

Pull class from tree. Parsing dom?

Good day! Please help!
For example, there is this code:

<div class="lol">
<div class="lol2">
<div class="lol3">
</div>
</div>
</div>

Question: How to pull content with js class lol3 ?
There is no possibility to connect id. Because these blocks are loaded by a third-party widget.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NAfanasiev, 2019-10-10
@leonardogun

document.getElementsByClassName("lol3");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question