I'm using SVG to display some animations. But being newbie at SVG I'm simmply using tried and tested jQuery animations for animating SVG elements such as rect and circle etc.
Now this is not a duplicate of jQuery Selector + SVG Incompatible? ..
I want to change class of a
<rect class="my-class-1 box" ...></rect>
to
<rect class="my-class-2 box" ....></rect>
I've tried normal jquery methods of addClass() and removeClass(). Which does not work due to their differences in DOM structure of HTML and SVG.
SO I'm using http://keith-wood.name/svgRef.html plugin to do the SVG element access and animation.
Stuck between rock and a hard place
Appreciate the help Thnx