Skip to content
Advertisement

is there any other than querySelector and querySelectorAll that i can use

How can i run all these paragraph?

JavaScript

i know querySelector returns the first element but i want to know how can i return both paragraph. I already tried using querySelectorAll but i do not know how to write it. Sorry iam still learning btw

Advertisement

Answer

I guess this is what are you looking for:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement