jQuery keyup() Event Method

Last Updated Jul 21, 2015, 12:00:06 PM





jQuery keyup() Event Method

jQuery keyup() event is used to bind an event handler to the javascript "keyup" event or trigger that event on an element.

Syntax

jQuery keyup() method behaviour can also be performed by .on( "keyup", handler ) and jquery trigger( "keyup" ).


Example

In the above example, it will change its color of the text box if you press the keyup and keydown arrows.

Try It Now

Other Advanced jQuery Events you might want to learn
jQuery Complete Events Reference

jQuery Events

jQuery Document Events

jQuery Keyboard Events

jQuery Mouse Events


Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM