pstein 1 Posted February 21 Report Share Posted February 21 Assume I have statement document.querySelectorAll("p") ........ Now I want to apply the full statement not only to <P> tags but also to <div> tags. Ok, I could write a second statement document.querySelectorAll("div") ........ but I want to avoid this. Is there a way to merge the two commands into ONE statement? Quote Link to post Share on other sites
dsonesuk 921 Posted February 21 Report Share Posted February 21 Comma separated I believe. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.