JQuery background color animate not working
I want to change the background color of 'exampleDiv' from the original white background to when I call the code below to immediate change the background yellow and then fade back to the original white background. $("#exampleDiv").animate({ backgroundColor: "yellow" }, "fast"); However, this code does not work. I have only the JQuery core and JQuery UI linked to my web page. Why doesn't the code above work? matadur I've had varying success with animate , but found that using its built in callback plus jQuery's css seems to work for most cases. Try this function: $(document).ready(function () {