I want something like this but with a slight change. I want a Button to be enabled or disabled on Checkbox checked event, i.e. when checkbox is checked then and then only b
$(function() { $('#id_of_your_checkbox').click(function() { if ($(this).is(':checked')) { $('#id_of_your_button').attr('disabled', 'disabled'); } else { $('#id_of_your_button').removeAttr('disabled'); } }); });
And here's a live demo.