$("#myCheckBox").change(function () { $("input[type='submit']").prop("disabled", !this.checked); });
Friday, May 8, 2015
Toggle Enabled State on Submit Button from Checkbox with jQuery
Subscribe to:
Posts (Atom)
This blog features pure JavaScript code. You don't need to use libraries to do stuff in JavaScript.
$("#myCheckBox").change(function () { $("input[type='submit']").prop("disabled", !this.checked); });