There is such a xml markup structure:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="93mm" height="53mm"> <rect x="0" y="0" width="93mm" height="53mm" stroke="black" stroke-width="2px" fill="white" /> <rect x="0" y="0" width="100" height="100" fill="blue" stroke="red" stroke-width="5px" rx="8" ry="8" id="myRect" class="chart" /> <text x="20" y="55" font-family="Verdana" font-size="43pt" id="hello">Hello World!</text> <text x="100" y="100" font-family="" font-size="">Кукарамба</text> </svg>
And there is an HTML form! Suppose I entered the word "Хэшкод"
in the input type="text"
"Хэшкод"
, how can I create such a tag - <text x="100" y="100" font-family="Verdana" font-size="20px">Хэшкод</text>
and add before closing tag </svg>
? I plan to implement this task using jQuery.