I've been making some SVG append to my code using jQuery and I have a problem with my animation on svg element. The thing is that when I insert this code
<circle fill="#2380c2" cx="20.5" cy="12.5" r="1.5" id="circ1">
<animate begin="svg_1.mouseover" end="svg_1.mouseout" from="20.5" to="20.5" dur="1.5s" repeatCount="indefinite" attributeName="cx" values="20.5;18.5;20.5;22.5;20.5"></animate
</circle>
using append(), attributeName is converted to attributename and my Google Chrome doesn't recognize it as a valid attribute.
Any help on how to solve this append() issue?