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
Post a Comment