title: Simulate next button click with jQuery
body: <p>Not sure if this is possible but I have a slideshow on my site that when a button is click the relevant slide, slides in. </p>
  
  <p>What I want to do is add a timer so that after 3 seconds the next button is clicked, making my slideshow slide automatically. </p>
  
  <pre><code>$('#button a').click(function(){
      var integer = $(this).attr('rel');
      $('#myslide .cover').animate({left:-720*(parseInt(integer)-1)})  /*----- Width of div mystuff (here 160) ------ */
      $('#button a').each(function(){
      $(this).removeClass('active');
          if($(this).hasClass('button'+integer)){
              $(this).addClass('active')}
      });
  
  
  });
  </code></pre>
  
  <hr>
  
  <p>Ive added a Fiddle...
  <a href="http://jsfiddle.net/5jVtK/" rel="nofollow">http://jsfiddle.net/5jVtK/</a></p>