Look at the source & F12, this is an example of applying an event listner to all paragraph elements in the doc

set 1

first para

second para

third para

fourth para

fifth para

set 2

first para

second para

third para

fourth para

fifth para