JSFiddle - React, Tailwind, and code Playground
HTML
<textarea class="ipText" name="myTextBox" id="txtBox" cols="50" rows="5"></textarea>
</br>
<button type="submit" onclick="saveComment">Save</button>
<input type="button" name="enableText" id="enableTxt" value="Click to Toggle" onclick="toggleText()">
<script>
function toggleText() {
var Disabled = document.getElementById("txtBox").disabled;
document.getElementById("txtBox").disabled = !Disabled;
}
</script>