JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

HTML

<input id="target" />

CSS

body {
    text-align: center;
}
#target {
    border: 1px solid #000;
    margin: 50px auto;
}

JavaScript

$(document).ready(function () {

    $('#target').on('keydown', function (e) {
        console.log('keydown', e);
    });

   $('#target').on('click', function (e) {
        console.log('click', e);
    });
    
    
});