title: How to trigger a click on a link using jQuery
body: <p>I have a link:</p>
  
  <pre><code>&lt;ul id="titleee" class="gallery"&gt;
    &lt;li&gt;
      &lt;a href="#inline" rel="prettyPhoto"&gt;Talent&lt;/a&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>and I am trying to trigger it by using:</p>
  
  <pre><code>$(document).ready(function() {
    $('#titleee').find('a').trigger('click');
  });
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>I've also tried: <code>$('#titleee a').trigger('click');</code></p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>I actually need to trigger whatever get's called here <code>&lt;a href="#inline" rel="prettyPhoto"&gt;</code></p>