0
Well, I’m riding a carousel on a test project, and I came up with a question, how can I, with vanillaJS
, capture certain elements by tag
, and put them inside a array
? The idea would be more precisely, capture according to the position on the body of the HTML
, for example capture all figure
that are within a div
whose father is #banners.
How can I do this by loading the page ?
Could add the code?
– Marconi
has no code ready, the array would be my first step, just schemed on paper even :D
– Murilo Melo
I only have html, but it would be like the example given, I would have nothing different msm
– Murilo Melo
Try this: var arr = Document.querySelectorAll("#banners figure");
– JuniorNunes
Get it, more pole please, it’ll help a lot
– Marconi
perfect @Juniornunes
– Murilo Melo
put code as answer man :D
– Murilo Melo
All right, I’ll answer then.
– JuniorNunes