JSFiddle - React, Tailwind, and code Playground

by Ujwal Ratra

HTML

<input type ="text" value="dis" id="readOnlyInput" readonly/>
    <input type ="text" value="dis" id="disabledInput" disabled/>

JavaScript

//works here
$('#readOnlyInput').click(function() {
    alert("working");
});

//does not work here
$('#disabledInput').click(function() {
    alert("working");
});