childrens() in I6 does not work corectly.

childrens() in I6 does not work corectly.

 I got a pice of html that i want to transform to UI Tabs.

This code is aouto generated and wrong, so I want to correct it before

calling tabs() function

  1. <div id="localtabs" class="list">
  2. <ul>
  3. <li id="tab1"><a href="#tone" title="Local Tab One"><span>Local Tab One</span></a></li>
  4. <li id="tab2"><a href="#ttwo" title="Local Tab Two"><span>Local Tab Two</span></a></li>
  5. <div id="tone">some text</div>
  6. <div id="ttwo">som other text</div>
  7. </ul>
  8. </div>
My target is to move the divs currently inside the UL tags outside. My thought was to select the divs with this statement:
  1.  var tabdivs = $('#'+options.id+' ul').children('div');
  2. alert('tabdivs.length '+tabdivs.length);
This works fine in Firefox he told me tabdivs.length 2 but in IE6 i got an alert tabdivs.length 0 . Why IE6 found no childrens? Does anyone have a suggestion? Many Thanks
Johannes Geppert