JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="myID" name="myName" value="Old value">

JavaScript

$(document).on('change','#myID',function(){
    alert('Id:'+this.id+'\nName:'+this.name+'\nValue:'+this.value);
});