Using Jquery to get the div id?
<p>How can I get DIV id or DIV class using Jquery if the HTML is similar to:</p>

<pre><code>&lt;div class="first" id="first_id"&gt;
&lt;div class="second"&gt;text sample&lt;/div&gt;
&lt;div class="third"&gt;&lt;button type="submit" class="some_class" id="some_id" &gt;send&lt;/button&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Is it possible to get the class or ID of the div "first", with the click of the button?</p>

<p>I know that using this Jquery code I'll get the button ID, but can I get, with some changes in this code, alert message with the class (or id) od "first" DIV? </p>

<pre><code>$("#some_id").click(function() {
var test=$(this).attr('id');
alert(test);
return false;
});
</code></pre>
