jQuery Tutorial


jQuery Example


jQuery References


jQuery which Event Reference


  jQuery Events References


Uses

jQuery which event Occurs, when key press on your keyboard and return key number.


Syntax

event.which

jQuery which events supported following parameters.

ParameterDescription
eventevent is Required parameter. event define specific event binding to the function.

which Event Example

<script type="text/javascript">
$(document).ready(function(){
  $("input").keydown(function(e){ 
    $("span").text("Pressed Key: " + e.which);
  });
});
</script>
Online Try This Code Your Self....   »

  jQuery Events References