Here is the code I am currently working with:
$.ajax({
type: 'POST',
url: 'load_more.php',
data: {val:myval},
success: function (data) {
$("#load_current").prepend(data);
//alert(data);
}
});
The function is working correctly, but I am looking to add an animation when pre-pending the data to a div. I tried using
$(data).prependTo("#load_current").fadeIn('slow');
but it did not work as expected. If you have any suggestions on how I can achieve this animation effect successfully, please let me know. Thank you!