$('div').attr('style', '');
or
$('div').removeAttr('style'); (From Andres answer )
To make it a little smaller, try the following:
$('div[style]').removeAttr('style');
This should speed it up because it checks that the div has a style attribute.
In any case, it may take a little time to process if you have a large number of divs, so you may consider other methods than javascript.
Tyler Carter Aug 04 '09 at 20:17 2009-08-04 20:17
source share