I have a SVG create with Raphael 2.0 which look like this :
<div class="stave">
<svg height="342" version="1.1" width="512" xmlns="http://www.w3.org/2000/svg"
style="overflow: hidden; position: relative;" viewBox="0 410 1300 80"
preserveAspectRatio="meet">
........
</svg>
</div>
i just want to set an ID to the svg tag! How can i do it? JQUERY or RAPHAEL 2.0?
i have see many answers but none works for me.
Thank you for helping
With jQuery you can use element selector and :nth-child().
Something like this: (jsFiddle)
Of course, in your case, selector would be
$('svg')