I'm actually working with definition list: <dl> <dt id="foo">Foo</dt> <dd class="bar">Bar 1</dd> <dd class="bar">Bar 2</dd>
<dt id="baz">Baz</dt> <dd class="flurp">Flurp</dd> </dl> The definition list will contain a variable amount of <dt> and <dd> tags, so what I am trying to do is select all <dt> tags, then loop through them to select their related <dd> tags. Then later, based on user interaction, I will show/hide the set. var sets = {}; var dl = $('dl'); var dts = dl.find('dt'); dts.each(function() { var dt = $(this); var set = dt.add(dt.nextAll('dt')); var label = dt.text(); sets[label] = set; }); -- Hector On Fri, Aug 14, 2009 at 10:42 AM, Wolf <ventas.w...@gmail.com> wrote: > > i dont understand , but you want append content de foofbars to foo or > mixed ..? > what contains foo and foobars?