I am working on the below code. Is it doable to append a text into path
using jQuery?
$("path").each(function() {
$(this).append("<span>Title</span>");
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<svg height="210" width="400">
<path d="M150 0 L75 200 L225 200 Z" fill="gold"/>
</svg>
<svg height="210" width="400">
<path d="M150 0 L75 200 L225 200 Z" fill="gold"/>
</svg>