JQuery Keydown Function Not Working April 13, 2023 Post a Comment I need some help with making the following code work properly: $('#entry').keydown(function(e) { alert(e.keyCode); }); With this textarea field: Solution 1: $(function() { $('#entry').on('keyup', function(e) { if (e.which == 13) someotherFunction(this.value); }); }); Copy FIDDLE Solution 2: Try: $('#entry').live('keydown',function(e) { alert(e.keyCode); }); Copy Share Post a Comment for "JQuery Keydown Function Not Working"
Post a Comment for "JQuery Keydown Function Not Working"