Easy Tutorial
❮ Misc Callbacks Disabled Html After ❯

jQuery event.which Property

jQuery Event Methods

Example

Returns which key was pressed on the keyboard:


Definition and Usage

The event.which property returns which keyboard key or mouse button was pressed for the specified event.


Syntax

Parameter Description
event Required. The event parameter comes from the event binding function.

More Examples

Returns which mouse button was pressed


jQuery Event Methods

❮ Misc Callbacks Disabled Html After ❯