Thursday, December 13, 2012

How disable a key by jQuery?

$('html').bind('keypress', function(e)
{
   if(e.keyCode == 80 || e.keyCode == 112)
   {
      return false;
   }
})