JSFiddle - React, Tailwind, and code Playground

by smacky311

HTML

<input id="textBox" type="text" />

JavaScript

$('#textBox').attr('disabled', 'disabled');