jQuery get the id from the parent selector?
<p>I have the following code and this is getting the id attribute of the 'a' element.  However, I'd like to get the id attribute of the original '.panel' class.</p>

<p>Any ideas how to do this?  Thank you!</p>

<p>jQuery:</p>

<pre><code>$('.panel .panel_content a').click(function(){
    alert($(this).attr('id'));
});
</code></pre>

<p>Markup:</p>

<pre><code>&lt;div class="panel" id="step_2"&gt;
     &lt;h3&gt;Title&lt;/h3&gt;
        &lt;div class="panel_content"&gt;
          &lt;a href="#"&gt;Item&lt;/a&gt;
        &lt;/div&gt;
&lt;/div&gt;
</code></pre>
