animate font color jquery

animate font color jquery


I am trying to make font color fading from one color to another. The
code below doesnt work from red to black. Can someone help to fix
that? Thanks
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/
jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="js/ui.core.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('#test').click(function() {
     $('#test').text("test 2");
     $('#test').animate({
        color:"black"
     }, 500);
});
});
</script>
</head>
<body>
<label id="test" style="color:red;">abcd</label>
</body>
</html>
[/code]