vargaspizzazz
New Member
My client side code below fetches some data from the server and then renders the data on to the screen. What 'append' does is that it puts the most recent data at the end of the list, whereas I want the latest data to be shown at the top of the list. I am looking for something like append before or append at the start. Any help would be appreciated.\[code\]<script> for(var i = 0 ; i < data.length; i++){ $('#uls').append('<li><p>' + data.summary + '</p></li>'); }</script><body> <div id="main"> <ul id="uls"></ul> </div></body>\[/code\]