title: Trigger click after load page
body: <p>I'm working with a wordpress theme and I need to activate a button when the page loads, but none of the following has worked for me (my button has the ID "reset"):</p>
  
  <pre><code>$(document).ready(function() {
     $("#reset")[0].click();
  }); 
  </code></pre>
  
  <p>--</p>
  
  <pre><code>$(document).ready(function(){
     $("#reset").click();
  })
  </code></pre>
  
  <p>--</p>
  
  <pre><code>$(window).load(function(){
        $('#reset').click();
  });
  </code></pre>
  
  <p>I put the code in the header or in the page where i need to activate the button, but does not work. </p>
  
  <p>Thanks!</p>