If I have a group of checkbox buttons, what is the correct way to determine the state of a button?
Now I am doing this:
$('#group label').each(function() { if ($(this).attr('aria-pressed') == 'true') { } });
But sometimes the checkboxes are not checked, and some still have aria-pressed = true . I do not understand this.
source share