javascript - jQuery animate syntax and sequence of animations? -


i have if statement works (when console.log):

if (results['status'] == true) console.log('valid'); 

i trying animate color change on submit button instead of console.log:

if (results['status'] == true)  $("detail-save-button").animate({backgroundcolor: "#aa0000"}, 1000); 

the first statement works, second not. have error in syntax? have code elsewhere include jquery.

how change 2 animations, 1 after next?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -