0
how to alert a <p> tag's text out of multiple <p> tags in a page using the document.getElementsByTagName(); when clicked
clicking on a paragraph from a page of multiple paragraphs to alert its text using document.getElementsByTagName();
1 Réponse
+ 2
You could find the method here, how to add addEventListener for multiple same tags.
https://code.sololearn.com/W0V57tk1tu62/?ref=app