Timeline for How can I improve performance of my selecting code
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 6, 2013 at 20:44 | comment | added | Daniel Imms | Yeah that's it. Apologies, working without testing :p | |
Mar 6, 2013 at 10:41 | comment | added | Bob | I figured it out. I used "filter" instead and it works: var checked = checkboxes.filter(":checked:not(.checkall)"); checked.each(function () { | |
Mar 6, 2013 at 10:34 | comment | added | Bob | Thanks Tyriar!. the only issue i'm having is having this: var checkboxes = $('input[type=checkbox]'); and then doing this: alert(checkboxes.find(':checked:not(.checkall)').length); always returns 0. however when I have this: alert($('input[type=checkbox]:checked').length); returns the right number of checked checkboxes. ??? | |
Mar 6, 2013 at 10:18 | vote | accept | Bob | ||
Mar 6, 2013 at 8:33 | history | answered | Daniel Imms | CC BY-SA 3.0 |