I have an external SVG loaded with the SVG Jquery plugin http://keith-wood.name/svg.html.
One line of the SVG is:
<g groupmode="layer" id="layer1" inkscape:label="myLabel"></g>
I'm able to get the value of the label of that element by this line
$('#layer1', svg.root()).attr("inkscape:label");
this will return the value "myLabel".
How do I select the same element using that value?
Tryed with
var myElement = $('g[inkscape:label="myLabel"]', svg.root());
with no luck.
Any suggestion?
TIA!