[jQuery] Re: Grouping Definition list items

2008-05-28 Thread macgregor
Thanks, that worked perfectly. On May 28, 5:11 am, Scott Sauyet <[EMAIL PROTECTED]> wrote: > macgregor wrote: > > I have a survey marked up with a definition list like so: > > > [ ... ] > > Question 2 > > Answer 1 > > Answer 2 > > Answer 3 > > > >

[jQuery] Re: Grouping Definition list items

2008-05-28 Thread Scott Sauyet
macgregor wrote: I have a survey marked up with a definition list like so: [ ... ] Question 2 Answer 1 Answer 2 Answer 3 Is there any way to select the dd elements for a particular dt? I would like to be able to show/hide the

[jQuery] Re: Grouping Definition list items

2008-05-27 Thread Jason Huck
Have you tried using .next() ? Something along these lines (untested): $('dd.comments input[type="radio"]').toggle( function(){ $(this).next('dd.feedback').show(); }, function(){ $(this).next('dd.feedback').hide(); } }); - jason On May 27, 3:57 pm, macgregor <[EMAIL PROTECTED]> wrote: