JSFiddle - React, Tailwind, and code Playground

by Madara Uchiha

HTML

<input type=checkbox id=agree />
<button id=continue disabled>Continue</button>

JavaScript

$('#agree').change(function() {
    var state = $(this).is(':checked');
    if (state) {
        $('#continue').removeAttr('disabled');
    } else {
        $('#continue').attr('disabled', 'disabled');
    }
});