Get dynamic class each fieldset
<p>How can get(dynamic) each class <code>fieldset</code> that wrapping the elements in it?</p>

<p><strong>Like:</strong></p>

<p>if click on button <code>adult</code> =get class=> <code>.adult</code> from here in the html: <code>&lt;fieldset class="adult"&gt;</code><br>
if click on button <code>child wbed</code> =get class=> <code>.child wbed</code> from here in the html: <code>&lt;fieldset class="child wbed"&gt;</code><br>
if click on button <code>child bed</code> =get class=> <code>.child bed</code> from here in the html: <code>&lt;fieldset class="child bed"&gt;</code><br>
if click on button <code>baby</code> =get class=> <code>.baby</code> from here in the html: <code>&lt;fieldset class="baby"&gt;</code><br></p>

<p><strong>Example:</strong> <a href="http://jsfiddle.net/WErW9/7/" rel="nofollow">http://jsfiddle.net/WErW9/7/</a></p>

<pre><code>$('button').live("click", function (event) {
    event.preventDefault();
    $(this).remove();
    var $this = $(this),
        $div = $this.parent('fieldset');
    var name = '.' + $(this).closest('fieldset').attr("class");
    alert(name);
});
</code></pre>
