Checkbox and Jquery - Checking
Hi,
I'm trying to loop over a set of checkboxes (5 of them) and if at least one of them is checked and NOT disabled then do something
Here is my code so far
$('#btnSave').click(function() {
var boxChecked = false;
$('.aRow input').each( function() {
if( this.checked && !$(this).attr("disabled","disabled") ){
var boxChecked = true;
}
});
alert(boxChecked);
Something like that... but I don't have it quite right.... Can someone assist... I'm quite new to JQuery..
Thanks,
-Westside