I have five checkboxes. Using jQuery, how do I check if at least one of them is checked?
<
You should try like this....
var checkboxes = $("input[type='checkbox']"), submitButt = $("input[type='submit']"); checkboxes.click(function() { submitButt.attr("disabled", !checkboxes.is(":checked"));
});