title: Trigger a button on page load
body: <p>I have this function</p>
  
  <pre><code>$("a#&lt;?php echo $custom_jq_settings['toggle']; ?&gt;").click(function() {
          jQuery("#&lt;?php echo $custom_jq_settings['div']; ?&gt;").slideToggle(400);
          jQuery("#featurepagination").toggle();
          jQuery("#featuretitlewrapper").toggle();
          return false;
      });
  </code></pre>
  
  <p>And this is the button I want to trigger on page load</p>
  
  <pre><code>&lt;a href="#" id="featuretoggle" onclick="changeText('&lt;?php if (is_front_page()) {?&gt;Show&lt;?php } else { ?&gt;Show&lt;?php } ?&gt; Features');"&gt;&lt;?php if (is_front_page()) {?&gt;Hide&lt;?php } else { ?&gt;Hide&lt;?php } ?&gt; Features&lt;/a&gt;
  </code></pre>
  
  <p>I would like to trigger that button when the page loads so that it starts open but then slides/closes </p>