.keypress()


.keypress( handler )Returns: jQueryversion deprecated: 3.3

Description: Bind an event handler to the "keypress" event, or trigger that event on an element.

This API is deprecated.

Instead of .keypress( handler ) or .keypress( eventData, handler ), use .on( "keypress", handler ) or .on( "keypress", eventData, handler ), respectively.

Instead of .keypress(), use .trigger( "keypress" ).