Why doesn't jQuery Append work for the end of HTML List Items?

Perhaps you want to use after instead of appendTo.

Yep! This does the trick, thanks cobbal $(targetStory). After(targetStory.clone()); – jakeisonline Apr 1 '09 at 10:21 For reference: docs.jquery.Com/Manipulation/appendTo States that the element you have , it will be inside it - just placed at the end of the content inside it.

Hence the word, Appending. . After like you found is the way to go.

– SuperRoach Apr 1 '09 at 12:06 True, I missed the clarification of "inside it", too much skimming. – jakeisonline Apr 1 '09 at 13:41.

I think what you want is this: $(targetStory).clone(). AppendTo(targetStory.parent()).

Almost, it's something Id' already tried. Instead, it adds it to the bottom of the list, rather than after the list item being cloned. – jakeisonline Apr 1 '09 at 10:16.

I think insertAfter is what you're looking for. After would insert the original node after the clone, rather than the clone after the original node. Something like this should work: $(targetStory).clone().

InserAfter(targetStory).

Thanks Mishac, cobbal already managed to nab the answer! $(targetStory). After(targetStory.clone()); – jakeisonline Apr 1 '09 at 14:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions