JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="test" />
<a id="clickme">Click me</a>

JavaScript

// the demo showing I have modified the attribute somehow
$("#test").attr({
    "checked": "checked",
    "disabled": "disabled"
});

//so now i have to use removeProp();
$("#clickme").click(function() {
    $("#test").removeProp("checked").removeProp("disabled");
});