title: jQuery: Triggering a click event on a radio button on page load
body: <p>I have 3 radio buttons which hide/show some div's.
  The radio buttons are getting generated by a php script, I want jquery to check the first radio button (works already!) and then trigger the click function so it hides/shows the related stuff.</p>
  
  <pre><code>$("input:radio:first").attr("checked", true).trigger("click");
  </code></pre>
  
  <p>The .trigger("click"); actually does not work.</p>
  
  <p>The click event of the radio buttons looks like this:</p>
  
  <pre><code>$("input[name='type']").on("click", function() { ... });
  </code></pre>
  
  <p>Any ideas?</p>