Примеры для jQuery event.type


On all anchor clicks, alert the event type.

1
2
3
$( "a" ).click(function( event ) {
alert( event.type ); // "click"
});