Is there a way to quickly retrieve a list of values from a specific CSS selector?
I am interested in extracting text enclosed in <strong>
tags only. Currently, I am using :
document.querySelectorAll("p > strong")
However, the result I get is a Node list...
NodeList(101) [strong, strong, strong, strong, strong, strong, strong, strong, strong,...]
I have been trying to access the innerText like this:
document.querySelectorAll("p > strong")[1].innerText
Is there a way to extract all the targeted text values into a list at once?