addListener to many elements
I have a page with many input text fields and need to have onClick, onBlur and onChange trigger functions for evey one. Is there a way to bind an event listener to all the input elements such that when an event occurs it fires a function that can then determine the name or id of the source input tag (event.srcElement) and process the rest of the function? I don't want to include "onBlur, onClick and onChange" in each tag as there are hundreds to thousands of input fields.
PS this is the code now: