[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?

2007-11-14 Thread Priest, James (NIH/NIEHS) [C]
checkbox at the end of the collapsed list: Topic x item 1 x item 4 0 view unchecked items And when they click on that - see everything again... Jim > -Original Message- > From: trevorp [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 14, 2007 2:41 PM > To: jQuery

[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?

2007-11-14 Thread trevorp
ociated label as > well. The parent().next() doesn't work above - I get one extra > (unchecked) item in each group... :( > > Jim > > > -----Original Message- > > From: tlphipps [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 14, 2007 12:05 PM >

[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?

2007-11-14 Thread Priest, James (NIH/NIEHS) [C]
Wednesday, November 14, 2007 12:05 PM > To: jQuery (English) > Subject: [jQuery] Re: how to loop over checkboxes and hide > the UNchecked ones? > > > You might try this instead of using .each() > UNTESTED: > $("input:checkbox").not(":checked").hide(); &g

[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?

2007-11-14 Thread Priest, James (NIH/NIEHS) [C]
Sweet - that DOES work! One step closer!! Thanks, Jim > -Original Message- > From: tlphipps [mailto:[EMAIL PROTECTED] > You might try this instead of using .each() > UNTESTED: > $("input:checkbox").not(":checked").hide();

[jQuery] Re: how to loop over checkboxes and hide the UNchecked ones?

2007-11-14 Thread tlphipps
You might try this instead of using .each() UNTESTED: $("input:checkbox").not(":checked").hide(); On Nov 14, 10:16 am, "Priest, James (NIH/NIEHS) [C]" <[EMAIL PROTECTED]> wrote: > I've got a series of topics - each with a list of checkboxes. > > Topic > 0 item 1 > 0 item 2 > 0 item 3 > > When the