On Sep 12, 9:20 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> .html() only gets the innerHTML for the first matched element.
i think that's what the OP is saying: the element's HTML he's getting
back is *not* that of the first child element:
> > <div id="content">
> > <div id="panelPreview" class="fieldset_theme">
> > <div id="panelPreview_inner" class="hPanel">
...
> > </div>
> > </div>
> > </div>
Now his children() call:
> > alert($('#content').children().html());
should return a result starting with <div id="panelPreview"...>, but
is instead starting with the HTML from the *next* inner-most DIV (in
fact the first child of #panelPreview, not the first child of
#content):
> > The resulting html starts with '<div id="panelPreview_inner"
> > class="hPanel">'
:?