I have difficulty with finding a problem with jQuerys .addClass()
function on an svg
element
On this site I have an svg object like this:
<svg ... >
<polygon class="maska mieszkanie" id="I9M01" ... />
<polygon class="maska mieszkanie" id="I9M02" ... />
<polygon class="maska mieszkanie" id="I9M03" ... />
...
In code below I have:
<script type="text/javascript">
jQuery("#I9M01").addClass( "wolne" );
</script>
But I cannot force it to work. If I do jQuery("#I9M01").remove()
it works, but I cannot add class and I don't know why. Is there any problem with svg elements?