I am trying to simply animate the background on a keystroke. I can't get it to work using:
$('input#userInput').live('keydown', function() {
$(this).animate({backgroundColor:'#4E1402'}, 300).delay(800).animate({backgroundColor: '#555'}, 100);
});
Please let me know where I am going wrong. Thanks!