On Aug 3, 7:57 pm, "
andy.kri...@gmail.com" <
andy.kri...@gmail.com>
wrote:
This is usually done by assigning an empty string to a property, e.g.:
element.style.backgroundColor = '';
As far as `removeStyle` helper, something like this should work:
Element.addMethods({
removeStyle: function(element) {
element = $(element);
$A(arguments).slice(1).each(function(style) {
element.setStyle({ style: '' })
});
return element;
}
});
// then
$(someElement).removeStyle('color', 'opacity', 'position');
--
kangax