Handle key up event

Description

The following code shows how to handle key up event.

Example


<html>
<head>
<script
  src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {<!--from ww w. j  a v  a2s .  c  om-->
    $("input").keyup(function(e) {
      if (e.which > 65) {
        alert(e.which);
      }
    });
  });
</script>
</head>
<body>
  <input type="text" />
</body>
</html>

Click to view the demo





















Home »
  jQuery »
    jQuery Example »




Animation
DOM
Event
Form
List
Select
Style
Table
Utilities