Append content on random location with jQuery?
问题 I need to display a list of items in a page, and this page is updated with AJAX. Every time a new item is pushed to the client I want it to appear at a random location inside my ul list . Here's an example of the kind of list I'm talking about: http://jsfiddle.net/XEK4x/ HTML <ul class="itemlist"> <li>Item #2</li> <li>Item #2</li> <li>Item #3</li> <li>Item #4</li> </ul> CSS .itemlist li{ width:100px; height: 100px; margin: 8px; padding: 4px; float: left; background: #dddddd; } Any ideas how I