I have th following script
$("button#submit").click(function () {
$("tr[data-id='" + lastRefId + "']").css("background-color", "#8aabf0");
$("tr[data-id='" + lastRefId + "']").animate({ backgroundColor: "white"}, 'slow');
});
It's a simple script that should change the backgrund to the color above and than change it back to the previous color (white). The first line works, but the second doesn't.
Why and how should I fix it?