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();

9th Aug 2018, 10:06 PM
wagaba david
wagaba david - avatar
1 Antwort
+ 2
You could find the method here, how to add addEventListener for multiple same tags. https://code.sololearn.com/W0V57tk1tu62/?ref=app
9th Aug 2018, 10:51 PM
Calviղ
Calviղ - avatar