I need to identify elements from which events are fired.
Using event.target gets the respective element.
What properties can I use from there?
hrefidnodeName
I cannot find a whole lot of info on it, even on the jQuery pages, so here is to hoping someone can complete the above list.
EDIT:
These may be helpful: selfHTML node properties and selfHTML HTML properties
event.targetreturns the DOM element, so you can retrieve any property/ attribute that has a value; so, to answer your question more specifically, you will always be able to retrievenodeName, and you can retrievehrefandid, provided the element has ahrefandiddefined; otherwiseundefinedwill be returned.However, inside an event handler, you can use
this, which is set to the DOM element as well; much easier.