If you want to be sure the is appended after the last li use this
$(".list li:last").after("item " + (parseInt($(".list
li").length,10) + 1) + "");
On Jul 15, 10:24 am, Eno wrote:
> Given this HTML:
>
> item 1
>
> How would I insert elements inside the element after the
> existing ? I tri
What is the code you're using?
$("ul.list").append('item 2');
should work from your html.
On Jul 14, 2:24 pm, Eno wrote:
> Given this HTML:
>
> item 1
>
> How would I insert elements inside the element after the
> existing ? I tried using append() but that created a second
> element with th
2 matches
Mail list logo