How can I bind all events on a DOM element?

How can I bind all events (i.e. click, keypress, mousedown) on a DOM element, using jQuery, without listing each one out individually?

Example:

$('#some-el').bind('all events', function(e) {
    console.log(e.type);
});
62
задан user247702 1 May 2014 в 20:03
поделиться