animate ajax returned data
- $.ajax({
type: "POST",
url: "addevent.php",
data: userdata,
cache: false,
success: function(data) {
$("div#my_events").prepend(data);
}
so I'm loading the div#my_events by prepend(data) where "data" is another well styled div. Is there anyway to animate this returned data. Unfortunately I can't just specify a unique ID on the incoming data. So I was wondering how else I might be able to address this data I'm returning.
It is basically a topic list, with a modal that sends jquery to add a topic to the database, and returns the topic from the database, hides the modal, and displays the last added topic at the top of the topic list. Now I'd like it to do something slightly fancy like animate the color of the background to bring the user's attention to it.
any hints would be grateful.
Cheers,
-lg