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 -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -