I want to retrieve at once a list of values from a spcific CSS selector.
I want to extract the text in <strong>
only. I am using :
document.querySelectorAll("p > strong")
But the I got a Node list...
NodeList(101) [strong, strong, strong, strong, strong, strong, strong, strong, strong,...]
I am targeting the innerText like :
document.querySelectorAll("p > strong")[1].innerText
How can I extract all the targeted text values in a list at once ?