I call the php processing file using ajax, adding the returned HTML code below
$.ajax({
type: "POST",
url: "proc/process.php",
data: dataString,
cache: false,
success: function(html){
$("ul#lists").append(html);
$("ul#lists li:last").fadeIn("slow");
$("#flash").hide();
}
});
It adds an item <li></li>at the end of the ul # list. I want the returned list item to <li></li>be at the top of the list, not the last one added. How to do it?
source
share