JQUERY, appending an LI to a UL, and then animating that LI

Posted by nobosh on Stack Overflow See other posts from Stack Overflow or by nobosh
Published on 2010-06-14T02:45:19Z Indexed on 2010/06/14 2:52 UTC
Read the original article Hit count: 220

Filed under:

I have an UL:

<ul id="news-feed">.....</ul>

I'd like to be able to append a LI to the top of the list and have that appended item slideDown into place.

$("#news-feed").append('<li">This is my item</li>').hide().slideDown();

Problem I'm having is the above code is sliding the news-feed item down, and not the appended item. Any ideas?

© Stack Overflow or respective owner

Related posts about jQuery