The defaults appearances for a <button>
in different browser are different.
So i want to put with .animation() [so .toogleClass() does not provide a solution] a color on the button, and after that to go back to the default appearance of the button.
In order to do that, i want to do
var saveOriginalButtonCSS = $("#idbutton").css();
$("#idbutton").css("background-color","#4CAF50");
$("#idbutton").animate({
'background-color': gray
}, {
duration : 5000,
complete : function(){
$("#idbutton").css(saveOriginalButtonCSS);
}
});
but css() need a parameter. So how can i do ? thank's