/ Published in: JavaScript
generischer Handler für die Eventausgabe in der Konsole....
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var generic_handler = function(event){ console.log(event); } $('.trigger') .click(generic_handler).mouseover(generic_handler).mouseout(generic_handler); $('*').click(function(){ console.log($(this)); });