why isn't this click trigger on a tab list working with jQuery?
<p>I've inherited support for a rails site with jQuery and I'm still learning jQuery. Looks like they're using tab navigation, and trying to trigger a click on the next tab with a 'Next' link below. Here's the relevant snippet:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    jQ().ready(function(){
            jQ("#tabs").tabs();
    });
&lt;/script&gt;
...
&lt;div id="tabs"&gt;
    &lt;ul&gt;
            &lt;li&gt;&lt;a href="#tab1"&gt;&lt;span&gt;Tab1&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tab2"&gt;&lt;span&gt;Tab2&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#tab3"&gt;&lt;span&gt;Tab3&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;div id="tab1"&gt;stuff
      &lt;a href="#" onclick="jQ('#container&gt;ul&gt;li:eq(1)').find('a').trigger('click');"&gt;Next&lt;/a&gt;
    &lt;/div&gt;
    &lt;div id="tab2"&gt;stuff
    &lt;/div&gt;
    &lt;div id="tab3"&gt;stuff
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>When you click on the Next link, nothing happens. I'm still trying to parse the syntax of jquery there. From what I read in one of the tutorials, the '#container' is looking for an element with the id='container', right? Could that be the problem? Or does '#container' have special meaning with jQuery?</p>
