Hi,

I've been looking for a solution regarding my problem... first, it appears 
I hadn't the right files when doing my tests with different versions. So 
it works fine  with the packed version 1.0.4 . But when I replace it with 
the packed v1.1.1, the code 
        alert(' div : '+$("div#tab_0").length+'- li : '+$("li#tab_0"
).length);
doesn't produce the same result.
with v1.0.4 : "div : 1  - li : 1"
with v1.1.1 : "div : 0 - li : 1"

The generated HTML code parsed by Jquery is something like this  : 
<div id="tabview" style="width: 99%;">

    <ul>
      <li class="" id="tab_0"><div onclick="showTab(0,'false');" 
style="cursor: pointer;">Great Clients</div></li>
      <li class="current" id="tab_1"><div onclick="showTab(1,'false');" 
style="cursor: pointer;">Good Clients</div></li>
      <li class="" id="tab_2"><div onclick="showTab(2,'false');" 
style="cursor: pointer;">Bad Clients</div></li>
    </ul>
    <span id="AA_default_loading_div" class="loadingDiv" style="display: 
none;">&nbsp;&nbsp;loading...&nbsp;&nbsp;</span>
</div>


<div id="tab_0" style="display: block; clear: left; width: 99%;">
        div0
</div>
<div id="tab_1" style="display: block; clear: left; width: 99%;">
        div1
</div>


I really don't understand why the li element matches, but not the div 
element. Can somebody help me please ? 

Thanks in advance

-- 
Vincent FUCHS

----- Forwarded by Vincent FUCHS/fr/socgen on 24/01/2007 16:27 -----

Vincent FUCHS/fr/socgen 
24/01/2007 10:43


To
[email protected]
cc

Subject
simple selector with ID doesn't work anymore





Hi,

I've just upgraded from 1.0.3 to 1.1.1 and some selectors don't work 
anymore.
A simple selector like $("div#tab_1") cant' find the div <div id="tab_1"> 
in v1.1.1 while there was no problem with v1.0.3 .

So unless the selecting philosophy has greatly changed between these two 
versions, I guess this is a pretty important bug.

It seems to be OK on 1.0.4 though, but I have a "$(document).ready is not 
a function" error.

Can somebody tell me if I'm wrong or if it's a bug ? 

Thanks in advance 

-- 
Vincent FUCHS
*************************************************************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressee(s).
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to 
alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or
falsified.
                              ************
Ce message et toutes les pieces jointes (ci-apres le "message") sont 
confidentiels et etablis a l'intention exclusive de ses
destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout 
message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de 
ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to