Key number of pressed key using JQUERY
We can get the number of the key pressed by user by using event.which
This code we will use along with keydown event to collect the pressed key number.
Here is the syntax
$("#t1").html('You Pressed key No: ' + event.which);
Video Tutorial on keyboard Events
Event ReferenceDEMO of event.which Event
This article is written by plus2net.com team.