JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="1" disabled="disabled">
<input type="text" value="1" disabled="disabled">
<input type="text" value="1" disabled="disabled">
<input type="text" value="1">
JavaScript
$(document).on("click", function (e) {
$clicked = $(e.toElement);
if ($clicked.is("input:disabled")) {
$clicked.prop('disabled', false);
}
});