[RESOLVED]Interpretation

What does this line of code mean?

                   if ($(‘#cbActive:checked, #cbHidden:checked’).length == 0) {

A comma in the select is an ORing operation. The colon is a pseudo-filter checking is the element is checked.

So it’s querying for the checked elements with IDs cbActive and cbHidden and if there are none of them (via length) then do something.

Leave a Reply