JSFiddle - React, Tailwind, and code Playground

by TrueBlueAussie

HTML

<form action="">
  <input type="checkbox" id="Condition" value="Conditions">Conditions
  <br>
  <input type="text" id="txtAgree" disabled>
  <input type="submit" name="generate" id="generate" disabled>
</form>

JavaScript

$('#Condition,#txtAgree').on('change keyup', function() {
  $('#txtAgree').prop('disabled', !$('#Condition:checked').length);
  $('#generate').prop('disabled', !($('#Condition:checked').length && $('#txtAgree').val()));
});