SyntaxFix
Write A Post
Hire A Developer
Questions
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"); });