Keyboard Events

Keyboard event in jquery arises when a keyboard key is pressed. Following are the properties of the keyboard events.

Focusin : $(selector).focusin(function())

The .focusin() event is used to focus the element when it gets triggered.

Focusout : .focusout()

The .focusout event is used to bind a function when an element or anyother element inside it loses focus.

Keydown : $(selector).keydown(function)

The .keydown() event binds a function to an event on an element whenever it is triggered.

Keyup : $(selector).keyup(function)

The .keyup() event binds a function to an event on an element whenever it is triggered.

Keypress : $(selector).keypress(function)

This .keypress() event binds a function to an event on a element when gets triggered.



Ask Questions

Ask Question