On May 4, 8:09 pm, coyote <rluss...@gmail.com> wrote:
> In other words, if I do the following:
>
>      dialog.children().remove().end().append(newContents);
>
> ...will 'newContents' be appended to 'dialog' or to each of the
> elements matching 'dialog.children()'?
>

end() returns to the previous state (dialog), so that's where the
newContents will be appended. You could simply use

dialog.html(newContents);

html() will call empty() - same function as children().remove() - and
then append().

cheers
-- ricardo

Reply via email to