JSFiddle - React, Tailwind, and code Playground

by manishkumarshr

HTML

<input id="test" type="text">

JavaScript

$('body').on('keydown', '#test', function(event) {
    $(this).val('hi'); 
}).on('keyup', '#test', function(event) {
   
    $(this).val('bye');
})

 $('#test').unbind('on');