What is the code you're using?

$("ul.list").append('<li>item 2</li>');

should work from your html.

On Jul 14, 2:24 pm, Eno <symb...@gmail.com> wrote:
> Given this HTML:
>
> <ul class="list"><li>item 1</li></ul>
>
> How would I insert <lI> elements inside the <ul> element after the
> existing <li>? I tried using append() but that created a second <ul>
> element with the new elements inside it after the existing <ul> block.
>
> --

Reply via email to