[jQuery] selecting parent div from an id

[jQuery] selecting parent div from an id

Sorry about that, it worked ..
The script element part:
<script type="Javascript"></script>
Messed it up, it wouldn't execute any javascript, half a day down the drain for a stupid mistke :)
Thanks for the help everybody,
the $('#bruto_salaris_nieuw').parents('div:hidden').show(); works perfectly..
Tim

-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of David Arango
Sent: dinsdag 18 juli 2006 11:10
To: jQuery Discussion.
Subject: Re: [jQuery] selecting parent div from an id
I tested two approaches with your code and works fine (Firefox 1.5):
// Jeremy Keith's way:
document.getElementById('bruto_salaris_nieuw').parentNode.parentNode.style.display
= 'block';
// John Resig's way :-)
$('#bruto_salaris_nieuw').parents('div:hidden').show();