#A way to get a specific element in all children of a div

4 messages · Page 1 of 1 (latest)

red berry
#

Hello, I wanted to know if there's a way to simply get an element of each child in a div.

document.querySelectorAll("[Many Things] > div:nth-child(*) > div > div > div > div.card-body.p-0.border-0 > div.data.mx-auto > h5 > app-speech > span").forEach(function(element){
  console.log(element.innerHTML);
})

Added CSS jic if CSS Selectors counts as a CSS thing to flair.

Finally, thanks in advance.

nimble bone
#
for (const parentDiv of document.querySelectorAll("[Many Things] > div")) {
  const allChildren = parentDiv.querySelectorAll('*');
  ...
}

@red berry

red berry
#

Is there's a way to close the thread just like the Python's server help channels?