I believe that I have discovered a jQuery bug. Can anyone confirm that I'm not
missing something?
I have stopPropagation() set on checkbox click eventsd. While it is preventing
the visual change of checkboxes being checked and unchecked, a test against the
checked attribute of the field is returning true with each click.
// prevent default
$('input:checkbox').click(function(e) {
e.preventDefault();
if($(this).attr('checked') == true) {
console.log('thinks its checked');
}
if($(':checked', this).length > 0) {
console.log('thinks its checked');
}
});
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net