samedi 5 octobre 2019

What's the best way to convert queryselector to queryselectorall [duplicate]

This question already has an answer here:

I need a list with hrefs the problem is. I cannot get a list of hrefs out. Queryselector works, i can easily get an href out with that. document.querySelector('span > a').href

but if i try with a document.queryselectorAll('span > a') i get all of them, but i have no idea how to get the hrefs out.




Aucun commentaire:

Enregistrer un commentaire