본문 바로가기
Programming/JavaScript

[jQuery] enterKey 막기

by 막이 2014. 8. 6.

$(document).keypress(function(event){

   var keycode = (event.keyCode ? event.keyCode : event.which);

   if(keycode == '13'){

    return false;

   }

});