$w() strips <styles>?

$w(‘#ElementID’).html =‘.dxv{ color:red}

Hello World, this should be red
’;

When working in the wix editor, it seems to strip out all tags. Is there a way around this?

Hey Tcok,

Notice the value you give id should be in parenthesis ("):

$w('#ElementID').html ='<style>.dxv{color:red;}</style><div id="dxv">Hello World, this should be red</div>'; 

Did that do the trick?

Thanks,
J.