JSFiddle - React, Tailwind, and code Playground

by francisfortier

HTML

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

JavaScript

$('#allo').keydown(function(e) {
    alert('keydown: ' + e.which);
});

$('#allo').bind('keydown', function(e) {
    alert('keydown: ' + e.which);
});

$('#allo').keydown(function(event) {
    alert('keydow eventn: ' + event.which);
});