JSFiddle - React, Tailwind, and code Playground

HTML

<label>cca</label>
<input id="cca" type="text" />

<label>ccit</label>
<input id="ccit" type="text" />

JavaScript

$(document).ready(function () {        
alert("hello");        
$("#cca").change(function(){
    alert('I am pretty sure the text box changed');
    $("#ccit").prop('disabled',true);
    event.preventDefault();
});
});