title: Click input on page load with jQuery
body: <p>I have three  radio buttons and I want, by default, to have the "BOTH" location which has a value of 3 to be clicked on page load so that it will run my jQuery post function. The radio button is filled-in giving the appearance of being clicked, but the click is not happening to post my function. Once I change the radio button however, the code works fine.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$("input:radio[name='location'][value='3']").click();
  
  $('input[name="location"]').change(function() {
      var location = $('input[name="location"]:checked').val(); var category = getUrlVars()["category"];
      $.post(
          'db/functions/package_conf.php',
          {category:category, location:location},
          function(data) {
              $('#package_info').html(data);
      });
  });
  </code></pre>