JSFiddle - React, Tailwind, and code Playground

by David Thomas

HTML

<form action="#" method="post">
    <label for="testing">This shouldn't work yet:</label>
    <input disabled type="text" name="test" id="testing" />
</form>

JavaScript

$('label').click(
    function(){
        var relevantInput = $(this).attr('for');
        $('#' + relevantInput)
            .removeAttr('disabled');
    });