JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="text1"/>
JavaScript
$(document).ready(
function() {
$('#text1').keypress(
function() {
alert("hi");
});
})
<input type="text" id="text1"/>
$(document).ready(
function() {
$('#text1').keypress(
function() {
alert("hi");
});
})