What is the KeyCode 13?

KeyCode 13 is the code for the Enter key on a keyboard. In JavaScript, this code can be used to trigger a function when the Enter key is pressed. This can be useful for form submission, or for triggering other functions that need to happen when the user hits Enter. The KeyCode 13 is also used to detect when a user has pressed the Enter key in a form field. 

jquery event keycode

on Jan 01, 1970
$('#someTextBox').keypress(function(event){
    var keycode = (event.keyCode ? event.keyCode : event.which);
    if(keycode == '13'){
        alert('You pressed a "enter" key in textbox');  
    }
});

Add Comment

0

This can be useful for submitting forms or for validating data entry. This can be used to execute a certain function or piece of code.

Javascript answers related to "Event keycode 13"

View All Javascript queries

Javascript queries related to "Event keycode 13"

Browse Other Code Languages

CodeProZone