.slice not working as expected

.slice not working as expected

Hi all,

I'm trying to get the 6th to the 11th checked checkboxes in a list of 12 by using slice, and it doesn't seem to work.

  1. gThroughK = ($('[name="'+obj.name+'"]:checkbox').slice(6, 11).is(":checked").length > 0)
Each time they click it should update, but I keep getting "false" no matter what. What would be better is if I can use CSS selectors in an expression, like
  1. gThroughK = ($('[name="'+obj.name+'"]:checkbox:(gt(6) && !(eq(11))):checked').length > 0)
Any thoughts?

TIA,

Eggers