I'm using the following snippet:
$('input[value=NEW]:hidden').attr('value', '').parent().parent().animate({
backgroundColor: "#FF9933",
duration: 800
}).delay(500).animate({
duration: 800,
backgroundColor: '#ffffff'
});
However, I would like to animate the element to the color "#FF9933" but then animate BACK to the color it was before changing.
I tried just persisting the elements background color in a var and using it, but the jQuery UI animate didn't seem to like the RGB() string that .css() gave me.
How would you do this?