I need to change the text of some svg at runtime.
I can't seem to access the svg inside the container because it is private.
<svg xmlns="http://www.w3.org/2000/svg"> ... <text id="beginner" fill="#212121">text to change</text> ... </svg>
document.getElementById("beginner").textContent = "My Value";
I need to change the text of some svg at runtime.
I can't seem to access the svg inside the container because it is private.
<svg xmlns="http://www.w3.org/2000/svg"> ... <text id="beginner" fill="#212121">text to change</text> ... </svg>document.getElementById("beginner").textContent = "My Value";