Thursday, June 9, 2011

Problem to uncheck list of checkboxes by jQuery


You cannot go this way:
$(':checkbox').attr('Checked', false);

Have to go by
            $(':checkbox').each(function () {
                this.checked = false;
            });


No problem to check all of checkboxes by:
$(':checkbox').attr('Checked', true);

Interesting…

No comments:

Post a Comment