I am using jQuery to select and manipulate SVG elements within the DOM. It's been tricky because I can do this adding or removing classes treating them as attributes.
Is it possible to remove an attribute using the animation effects from jQuery?
$('rect').mouseover(function(){
$(this).attr('class','selected');
});
$('rect').mouseout(function(){
$(this).removeAttr('class');
});