JSFiddle - React, Tailwind, and code Playground

by Amir Sharifian

HTML

<input id='myTextbox1' type='text'/>
<br><br>
<input id='myTextbox2' type='text'/>

JavaScript

$('#myTextbox1').on('input', function() {
    alert('Text1 changed!');
});

    
$('#myTextbox2').change(function() {
    alert('Text2 changed!');
});