Performing key events

Kmandapalli
Posted by Kmandapalli under jQuery category on | Points: 40 | Views : 219
$('input').keydown(function(e) {
// variable e contains keystroke data
// only accessible with .keydown()
if(e.which == 11) {
e.preventDefault();
}
});

$('input').keyup(function(event) {
// run other event codes here
});

Comments or Responses

Login to post response