Reputation: 2032
I have an HTML Panel , where i am saving some text and then i want to access some specific HTML Panel's node and change its attribute ,
This is what i am doing
HTMLPanel htmlText;
htmlText.setInnerHTML(result.getText());
Node x = htmlText.getChild(1);
I am getting this javascriptObject$ as the value of x (If i see in in Debug)
<span class="my-wrapper"><span class="myText">testing text</span><span class="myNumber"> (2) </span></span>
What i need is to get only this text "testing text" and change its color.
is it possible ?
thanks
Upvotes: 1
Views: 1052