How to select closest hidden div in jquery?
<p>I'm trying to perform a keypress event the divs inside the bus_lines div.</p>

<pre><code>$('#bus_lines').keypress(function(e){
    var box = $(this).closest("div:hidden").attr("id");
    console.log(box);

});
</code></pre>

<p>Here's what it looks like in firebug:</p>

<p><img src="http://i.stack.imgur.com/w2t2V.png" alt="enter image description here"></p>

<p>It only works on the parent div which is the one with the bus_lines id. If I try to perform keypress events inside of fs_buslines or fs_bustax its not working. I need to know the closest div where the keypress is performed. Basically I'm trying to perform button click events using keyboard shortcuts.</p>
