M
M
meridbt2020-06-10 13:24:40
JavaScript
meridbt, 2020-06-10 13:24:40

SVG. How to change the text of an element loaded via?

Good afternoon, dear colleagues.

I display individual groups of SVG images on the page:

<svg id="mysvg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 132 132">
    <use xlink:href="my.svg#common" />
    <use id="test" xlink:href="my.svg#test"/>
</svg>


How can I change the text of the test element using javascript?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2020-06-10
@petermzg

It seems not. Change the text in my.svg#test and it will change to test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question