I don't see anything wrong with your code - where are you calling it from?
ya that's what i thought but it does not work at all!!
I already try from "composition ready" and from an action (btn click)
It works with a simple html text but not with links...
Hard to know what the problem might be without seeing your file. Are you addressing the correct element ID?
Thank you for your feedback, but...
...that's the only code i have (at compositionReady), with "Text" and "Text2" on the Stage!!
The question is; Why the css does not work on "Text2"!?
I had to dig a bit more closely into this, because I was curious.
Actually, your code is working (well, there was one small typo - a colon in "text-decoration:" that didn't belong in the quotes) - anyway, it's setting text-decoration:none on the span...but that of course wouldn't work on the anchor tag within your span tag. To do that, try something like this:
sym.$("Text").html("<span class='test'>send email - no mailto:</span>");
sym.$("Text2").html("<span class='test'><a href='mailto:email@example.com' target='_blank'>send email - mailto:</a></span>");
That changes the style for the span class as well as the anchor.
It was strange, but that's it!!
Thank you ;-)