jquery selectors problem and efficiency
<p>Hi I have a problem(not exactly problem, I have solved it, but it is at least very interesting) with differet bahaviour of jquery selectors in IE(7-8) mobile Opera, and other browsers..
Here is my example</p>

<pre><code>&lt;div id="galleryEl"&gt;&lt;link href="http://designclub.cz/plugins/content/plugin_jw_sig/sig.css" rel="stylesheet" type="text/css"&gt;
                &lt;style type="text/css"&gt;.sig_cont {width:30px;height:20px;}&lt;/style&gt;
                &lt;script type="text/javascript" src="http://designclub.cz/plugins/content/plugin_jw_sig/mootools.js"&gt;&lt;/script&gt;
                &lt;script type="text/javascript" src="http://designclub.cz/plugins/content/plugin_jw_sig/slimbox.js"&gt;&lt;/script&gt;
                &lt;div class="sig"&gt;&lt;div class="sig_cont"&gt;&lt;div class="sig_thumb"&gt;&lt;a href="http://designclub.cz/images/stories/hp/hp-falper.jpg" rel="lightbox[sig0]" title="&amp;lt;b&amp;gt;hp-falper.jpg&amp;lt;/b&amp;gt;" alt="hp-falper.jpg" target="_blank"&gt;&lt;img src="http://designclub.cz/plugins/content/plugin_jw_sig/showthumb.php?img=hp/hp-falper.jpg&amp;amp;width=0&amp;amp;height=0&amp;amp;quality=0"&gt;
</code></pre>

<p>

</p>




<p>
        </p>

<p>Sorry about the formatting:)</p>

<p>The problem is following..When I use this selector <code>jQuery("#galleryEl .sig_thumb a").eq(index);</code> (index is really an integer) in major modern browsers it just works..
but in IE(7-9) (6 ia haven't tested) it doesn't..When I look into IE developer console, it looks like the result object is some kind of plain dom object???I am really not sure, not so skilled in js, but it seems so:)
When I change the <code>jQuery(".sig_thumb a").eq(index);</code> it selects the right dom element..The markup is so weird because of it's a joomla plugin, I am using it to dynamicaly creating background slideshows accroding to folder structure..So does anybody know wherefrom comes this weird behaviour?
And second question..I really want to make it efficient, so which kind of selector is the best one in this case?I know that when selecting over id, jQuery uses js native method, the same in case of tagName and so on, but I am really not sure how about the combinations if this selectors(whether is better to use id-tag-class-someOtherStuff, or id-class-someOtherStuff, id-someOtherStuff {in case that between id and the result object are many other DOM elements})
Thank for your help</p>
