how to get class name of second parent using jquery
<p>When i click on the expand image i need to get the class name of the second parent.</p>

<p><strong>For example if i click the expand image in the first div i need to get the class name test-one-heading.</strong></p>

<p><strong>If i click on the second div i need to get the class name test-two-heading.</strong></p>

<pre><code>&lt;div class="content"&gt;
&lt;div class="left-activity-block test-one-heading"&gt;
&lt;div class="clearfix leftsidebar-title  title-active"&gt; 
&lt;h2&gt;TEST 1&lt;/h2&gt;
&lt;div style="cursor: pointer;" class="collapse-symbol filter-plus-symbol"&gt;&lt;img width="12" height="12" title="" alt="" src="/sites/all/themes/images/icons/expand.png"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="content"&gt;
&lt;div class="left-activity-block test-two-heading"&gt;
&lt;div class="clearfix leftsidebar-title  title-active"&gt; 
&lt;h2&gt;TEST 2&lt;/h2&gt;
&lt;div style="cursor: pointer;" class="collapse-symbol filter-plus-symbol"&gt;&lt;img width="12" height="12" title="" alt="" src="/sites/all/themes/images/icons/expand.png"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>How can i do this using jquey..</p>

<p>Thanks in advance..</p>
