Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8689

Change text property of TextView

$
0
0

Hey All!

 

I want to change the "text" property of a TextView.

For reasons I don't want to explain to detailled, because it would be unnecessary, I have to do it this way:

 

document.getElementById(TextView ID).setAttribute('text', "new Text");

 

However in Debugging Mode, when I investigate the TextView Element, I get this confusing issue:

 

<spanid="TextView ID" [...]text="new Text">old Text</span>

 

 

Everytime I change the text, the old text is still displayed. Can anybody tell me, what's wrong with my code?

 

 

Best regards

 

Thomas


Viewing all articles
Browse latest Browse all 8689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>