title: jQuery: Triggering .click() events, one after the other
body: <p>I have a situation where I have to do multiple actions on a page in order to initialize it's settings. I do not have any code yet for it because, frankly I am having trouble finding a place to start on it.</p>
  
  <p>Here is what I want to do:</p>
  
  <pre><code>jQuery(document).ready(function($) {
  
      $('#element-one').trigger('click');
      // wait for the first trigger event to complete (it loads ajax content into a div tag)
      // then move on to this one...
      $('#element-two').trigger('click');
      // then move on to this one...
      $('#element-three').trigger('click');
      // then move on to this one...
      $('#element-four').trigger('click');
      // then finally move on to the last one
      $('#element-five').trigger('click');
  
  });
  </code></pre>
  
  <p>How is this accomplished?</p>