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
- <div id="localtabs" class="list">
- <ul>
- <li id="tab1"><a href="#tone" title="Local Tab One"><span>Local Tab One</span></a></li>
- <li id="tab2"><a href="#ttwo" title="Local Tab Two"><span>Local Tab Two</span></a></li>
- <div id="tone">some text</div>
- <div id="ttwo">som other text</div>
- </ul>
- </div>
My target is to move the divs currently inside the UL tags outside. My thought was to select the divs with this statement:
- var tabdivs = $('#'+options.id+' ul').children('div');
- 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