jQuery SVG, why can't I addClass?

前端 未结 15 1834
失恋的感觉
失恋的感觉 2020-11-22 02:25

I am using jQuery SVG. I can\'t add or remove a class to an object. Anyone know my mistake?

The SVG:



        
15条回答
  •  孤街浪徒
    2020-11-22 02:37

    After loading jquery.svg.js you must load this file: http://keith-wood.name/js/jquery.svgdom.js.

    Source: http://keith-wood.name/svg.html#dom

    Working example: http://jsfiddle.net/74RbC/99/

提交回复
热议问题