There is a way of jQuery and / or best practices (or browser) to achieve the basic goal of an event in jQuery JavaScript in general).
('click', function (e) {// depends on the browser, either the original element = e.srcElement bubbling up first click, // Element or // will be populated from the original set; if (original element) {original element = eorgan target}}}
which works, but I Is not there any better way to sniff with the line feature?
You can call it var original With Element = E The person can do .srcElement || || E.originalTarget;
but this is not very similar to JQuery; -)
[edit: but event.target < / Code> according to ...]
Comments
Post a Comment