OyvindLE
3/3/2015 - 9:00 AM

JQuery keystrokes

JQuery keystrokes

$('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							  
});