I'm seeing an error I can't replicate from a small subset of users. Here's the code:
var selected = $('#mytable input:checked');
if (selected.length == 0) {
$('body').trigger('notice', 'Please select some items first');
return;
}
Even when the user checks several checkboxes, the "notice" triggers. It seems selected.length is zero when it shouldn't be.
[UPDATE] The selector works when it's updated to:
var selected = $('input[class="selection"]:checked');
It seems including the id in the selector breaks things, only on IE.
This code is working for the vast majority of users and we can't replicate the issue, but for users that see the issue it's consistent and happens every time.
It seems to be isolated to IE (although I can't be sure). We're using jQuery 1.3.2 (from google CDN).
Any ideas?