This is old, but worked for me with jquery 1.11
<script>
$(function() {
$('#checkbox-id').click(function() {
if ($(this).is(':checked')) {
$('#button-id').removeAttr('disabled');
} else {
$('#button-id').attr('disabled', 'disabled');
}
});
});
</script>
the if command is replaced by the else statement and in the html button markup add disabled = "disabled"
can help someone
Jquery:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>