If I have the following in my html:
And this in my c
If you need to just empty the style of an element then: element.style.cssText = null;This should do good. Hope it helps!
style
element.style.cssText = null;