[jQuery] Re: hiding checkbox AND label?

2007-11-16 Thread trevorp
Jim, You started a new topic and abandoned your last one, not sure if that was on purpose or not, but the code I pasted at the end of the other topic seems to do exactly what you're asking for. Like I said, it's not necessarily elegant, but it does work. I should have probably copied your Topi

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

2007-11-14 Thread trevorp
Not necessarily elegant, but it works: [using your previous code starting with $(this).next() and going from there.] $('h3').click(function() { $ (this).next().children('div').children(':checkbox').not(':checked').parent('div').toggle("fast"); }); This assumes you have the following stru