change text in text class |
change text in text class |
MikeAngel |
Aug 2 2020, 03:01 PM
Post
#1
|
Group: Members Posts: 2 Joined: 2-August 20 Member No.: 27,471 |
So, I am trying to change a text in a svg class from code. I tried various stuff like document.getElementById(element).innerHTML and else but it seems to not work.
this is the code I am having: CODE <svg class="Rechteck_4"> <rect id="Rechteck_4" rx="7" ry="7" x="0" y="0" width="477" height="79"></rect> <text x="138" y="50" vertical-align='middle' text-align='left' font-family="Verdana" font-size="35" fill="white">000000000</text> </svg> I tried the document .text class the .innerText class the value and more but it seems to wont work.. any ideas? |
Lo-Fi Version | Time is now: 19th April 2024 - 03:56 PM |