Thursday, April 21, 2011

How to add to TOP of unordered list with jQuery

Hi All

I've created a Facebook/Twitter like status update and can add the new status to an element. I recently found a great article that explains "How to add items to an unordered list using jquery" but I'm not skilled enough to edit it to make it add to the TOP of my unordered list.

Any help would be greatly appreciated.

From stackoverflow
  • Use the prepend method instead of append.

    st4ck0v3rfl0w : lol, i'll try that, thanks!

0 comments:

Post a Comment