I made a webpage that loads an svg with the object tag
<object id="svgContainer" type="image/svg+xml" data="image.svg">Your browser does not support SVG</object>
and want to display some content dynamically. When I include the svg direct inside the HTML it works fine
<svg id="svgVontainer">
<circle cx="100" cy="100" r="2" id="edit" />
</svg>
JavaScript:
$(function() {
$("#edit").hide();
});
But when I try the same code with the object
it doesn't work.
Does someone know that problem and how to fix it?
EDIT: Here a jsFiddle so you can see what I mean http://jsfiddle.net/Ue7m7/.