Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery event keycode

$('#someTextBox').keypress(function(event){
    var keycode = (event.keyCode ? event.keyCode : event.which);
    if(keycode == '13'){
        alert('You pressed a "enter" key in textbox');  
    }
});
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #jquery #event #keycode
ADD COMMENT
Topic
Name
4+9 =