'Can I select again from element variable in Cheerio?
I just started using Cheerio. How can I select again from a loop element?
const championBox = $('div.css-1s4j24f>div');
championBox.each(async function(index, element) {
console.log(
// I want to get element>div.something>span.somethingelse
)
})
Thanks in advance.
Solution 1:[1]
const championBox = $('div.css-1s4j24f>div');
championBox.each(async function(index, element) {
const result = $(element).find('div.something>span.somethingelse');
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Achraf |
