JQuery Keydown, Keypress and Keyup Event

JQuery Keydown, Keypress and Keyup Event

by mishragaurav31

HTML

<input id="txtInput" type="text" />

JavaScript

$(document).ready(function () {
        $("#txtInput").keypress(
            alert("keypressed");
        );

});