jQuery get parent jQuery Object of clicked element
<p>My HTML contains many objects like this:</p>

<pre><code>&lt;div class="class"&gt;
  &lt;div class="disconnect_btn"&gt;Click here&lt;/div&gt;
  &lt;input type="hidden" name="ID" value="12"/&gt;
&lt;/div&gt;
</code></pre>

<p>I have a function that binds another function to the button element. Like this:</p>

<pre><code>$('.disconnect_btn').bind('click',function(e){
    disconnectFunction(e);
});
</code></pre>

<p>What I want to do ist to get first the Div where the button is, I tried to using <code>e.parents('.class')</code> Method, but this always returns error like object has no method...
My second target is to extract the value attribute from the hidden input field in parents Div.</p>

<pre><code>function disconnectFunction(e){
    var parent = e.parents('.class'));  //returns error
    var ID = parent.find('input:hidden[name=ID]').attr('value');
    console.log( ID );
}
</code></pre>

<p>I also tried this and $(this) selectors, but somehow I got stucked now, maybe there is an easy solution that I can't find.</p>
