[jQuery] IE selector bug/error?
<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY >
<DIV>
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"><!-- Letter Heading -->
<TBODY>
<TR>
<TD><!-- Left margin -->
</TD>
<TD>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS" size=2>I've found
something that I can't get around; in IE6, these selectors won't do anything for
me;</FONT></SPAN></DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS" size=2>1.
$("#admin-jobs #discipline_client_row").hide();</FONT></SPAN></DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS" size=2>2.
$("#admin-jobs > #discipline_client_row").hide();</FONT></SPAN></DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS" size=2>whereas
this works fine (as you'd expect);</FONT></SPAN></DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS" size=2>3.
$("#discipline_client_row").hide();</FONT></SPAN></DIV>
<DIV><SPAN class=404411114-23052007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=404411114-23052007>In IE,
number 1 gives me the error (when that div doesn't exist on the
page):</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=404411114-23052007>---</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=404411114-23052007>Line:
184</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=404411114-23052007>Error:
'getElementById' is null or not an object</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=404411114-23052007>---</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=404411114-23052007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=404411114-23052007>but number
2 reports no error, despite not finding the div on the page. </SPAN></FONT><FONT
face="Trebuchet MS" size=2><SPAN class=404411114-23052007>Has anyone come across
this before? Any help would be appreciated, IE is starting to drive me in to a
coma.</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=404411114-23052007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=404411114-23052007>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=404411114-23052007></SPAN></FONT> </DIV>
<DIV align=left><FONT face="Trebuchet MS" size=2>
<P><B>Luc Pestille</B><BR>Web Designer</P></FONT></DIV>
<DIV> </DIV></TD>
<TD><!-- Right margin -->
</TD>
</TR><!-- Disclaimer -->
<TR>
<TD COLSPAN="3"><BR>
<DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">In2<BR>Thames House<BR>Mere Park<BR>Dedmere Road<BR>Marlow<BR>Bucks<BR>SL7 1PB<BR>Tel 01628 899700<BR>Fax 01628 899701<BR>e: <A HREF="mailto:sales@in2.co.uk">sales@in2.co.uk</A><BR>i: <A HREF="http://www.in2.co.uk/">www.in2.co.uk</A><BR><BR><FONT COLOR="silver">This message (and any associated files) is intended only for the use of jquery-en@googlegroups.com and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not jquery-en@googlegroups.com you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from us may be monitored. Any views or opinions presented are solely those of the author Luc.Pestille@in2.co.uk and do not necessarily represent those of the company. <BR><BR><IMG ALT="in2 logo" HSPACE="0" SRC="cid:bbbf1f8da5@429e4f30-b518" ALIGN="baseline" BORDER="0"></FONT>
</DIV>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV></BODY></HTML>