title: jQuery SVG, why can't I addClass?
body: <p>I am using jQuery SVG. I can't add or remove a class to an object. Anyone know my mistake?</p>
  
  <p>The SVG:</p>
  
  <pre><code>&lt;rect class="jimmy" id="p5" x="200" y="200" width="100" height="100" /&gt;
  </code></pre>
  
  <p>The jQuery that won't add the class:</p>
  
  <pre><code>$(".jimmy").click(function() {
      $(this).addClass("clicked");
  });
  </code></pre>
  
  <p>I know the SVG and jQuery are working together fine because I <strong>can</strong> target the object and fire an alert when it's clicked:</p>
  
  <pre><code>$(".jimmy").click(function() {
      alert('Handler for .click() called.');
  });
  </code></pre>