Finding appropriate parent with jQuery
<p>Given a DOM element how do I find its nearest parent with a given css class?</p>

<pre><code>$(".editButton").click(function() {
   (magic container selector goes here).addClass("editing");
});
</code></pre>

<p>I don't want to use lots or $(...).parent().parent() since I don't want to be bound to a particular dom structure.</p>
