Weirdest thing! Seems to me like a bug with setting checkboxes with `attr(‘checked’, …);`, you code should definitely be working. I found a workaround though, by simulating a click (also changed your code a bit so you can remove the onclick handler from your html)
var checkBoxes = $(‘.activity’);
var checked = $(this).prop(‘checked’);
var $this = $(this);
if ($this.prop(‘checked’) != checked)
Edit: Ugh, I should refresh before submitting comments… xD Your solution is better.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".