JSFiddle - React, Tailwind, and code Playground

by Florian

HTML

<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<label>
    <input type="checkbox" name="agreement"> I read all the information in the red box above and followed the instructions!
</label>
<br/>
<input disabled="disabled" type="submit" name="submit">

JavaScript

$( document ).ready(function() {
	if($("input[name='agreement']").prop('checked') == true){
		$("input[name='submit']").prop('disabled', false);
	} else {
		$("input[name='submit']").prop('disabled', true);
	}
}