Inside warning callbacks, thisrefer to the window to refer to the called party object; you can use a variable elementthat stores a link to the source element.
the code:
element.parents(".record").animate({
backgroundColor: "#fbc7c7"
}, "fast")
.animate({
opacity: "hide"
}, "slow");
Demo: http://jsfiddle.net/IrvinDominin/PUh6f/
source
share