title: How to trigger click on page load?
body: <p>I'm looking for a way to automatically "click" an item when the page loads. </p>
  
  <p>I've tried using</p>
  
  <pre><code>$("document").ready(function() {
      $("ul.galleria li:first-child img").trigger('click');
  });
  </code></pre>
  
  <p>but it doesn't seem to work? However, when I enter <code>$("ul.galleria li:first-child img").trigger('click');</code> into Firebug's console and run the script, it works.</p>
  
  <p>Can the trigger event be used on load?</p>