How can I remove a style added with .css() function?
The accepted answer works but leaves an empty style
attribute on the DOM in my tests. No big deal, but this removes it all:
removeAttr( 'style' );
This assumes you want to remove all dynamic styling and return back to the stylesheet styling.
Changing the property to an empty string appears to do the job:
$.css("background-color", "");