Jquery trigger() is not working on document ready
<p>I tried a lot of variations of this but it doesn't seem to work.</p>

<pre><code>&lt;script type="text/javascript"&gt;
        $(document).ready(function(){
            $('#slide_click').trigger('click');
        });
    &lt;/script&gt;
</code></pre>

<p>This should triggers a button with an onclick event when the document is ready</p>

<pre><code>&lt;button id="slide_click" onclick="gotoSlide(&lt;?php echo $_GET["goto"] ?&gt;)"&gt;Trigger&lt;/button&gt;
</code></pre>

<p>The gotoSlide function needs an integer parameter, what it does is it should go to the specific slide on my gallery slider. But apparently it doesn't work. I can't seem to figure it out.</p>

<p>I'm using a jquery plugin for the slider called Advanced Slider. Am I using the trigger() function correctly?</p>
