I am using jQuery SVG. I can\'t add or remove a class to an object. Anyone know my mistake?
The SVG:
There is element.classList in the DOM API that works for both HTML and SVG elements. No need for jQuery SVG plugin or even jQuery.
$(".jimmy").click(function() { this.classList.add("clicked"); });