title: Add class to parent div
body: <p>I am working with the google maps drawing manager.  They don't put id's or class names on the drawing tools button bar so I'm trying to do this myself.</p>
  
  <p>First I want to remove the circle button which the below works fine, but I want to add my own button so need to add a class name to the parent div "gmnoprint" but google has about 5 div's all with the same class name.  I just want to add it to the one where the circle button was found.</p>
  
  <pre><code>&lt;div class=gmnoprint"&gt;&lt;/div&gt;
  &lt;div class=gmnoprint"&gt;&lt;/div&gt;
  &lt;div class=gmnoprint"&gt;&lt;/div&gt;
  &lt;div class=gmnoprint"&gt;
      &lt;div&gt;
          &lt;div&gt; &lt;== This is what I found in my search
              &lt;span&gt;
                  &lt;div&gt;
                      &lt;img&gt;&lt;/img&gt;
                  &lt;/div&gt;
              &lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;  
  </code></pre>
  
  <p>I am able to find the element I want and remove it, but adding a class to its wrapper div is proving a bit difficult for me.</p>
  
  <p>This works for removing the button</p>
  
  <pre><code>$(".gmnoprint").each(function(){
     $(this).find("[title='Draw a circle']").remove();
  });
  </code></pre>
  
  <p>This doesn't work.. Just add's the class to all ".gmnoprint" div's</p>
  
  <pre><code>$(".gmnoprint").each(function(){
     $(this).find("[title='Draw a circle']").remove().parent().addClass("test");
  });
  </code></pre>