Can someone help me understand. I've read the API documentation for $w.Style here (https://www.wix.com/code/reference/$w.Style.html) but I cannot seem to style an element. It's a text element (#text1). I try;
$w("#text1").style.color = "rgba(255,0,0)";
however in the IDE I have a warning "'style' does not exist on '#text1'". The API documentation does not list specific object this is exposed on, unless i've missed it?
I simply want to change the color of a text element in wix code without hacking HTML as the contents of the text element is connected to a dataset element.
What am I missing here?