[jQuery] selecting parent div from an id

[jQuery] selecting parent div from an id

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.2666" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=635422115-17072006><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial size=2>I'm trying to make
an parent div visible by giving it an id which is located within that
div.</FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial size=2>I tryed every
combination i could think of but was unable to display the hidden
div..</FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial size=2>example html
structure:</FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial size=2><div id="unkown"
style="display: none;"></FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006>    <FONT face=Arial
size=2><input id="fieldname1"
name="fieldname1">..</input></FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial
size=2></div></FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=635422115-17072006><FONT face=Arial size=2>I
tryed</FONT></SPAN></DIV>
<DIV><SPAN class=635422115-17072006><PRE class=wiki> $("//<FONT face=Arial size=2>fieldname1</FONT>/parent::div").show();
$("//#<FONT face=Arial size=2>fieldname1</FONT>/parent::div").show();
  $("//<FONT face=Arial size=2>fieldname1</FONT>/../div").show();<BR> $("#<FONT face=Arial size=2>fieldname1</FONT> > div").show();
$("#<FONT face=Arial size=2>fieldname1</FONT> < div").show();
</PRE><PRE class=wiki>Does anyone have an idea how i can make this div visible?</PRE><PRE class=wiki>Thanks in advance,<BR>Tim Boonstra</PRE></SPAN></DIV>
<BR>
This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html<BR>
</BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/