title: jQuery simulate click event on select option
body: <p>I have a select menu that triggers an AJAX request once one of the options has been clicked. I need to trigger a click event on the relevant option from a link. So I have code similar to the below, and although it changes the value of the select, it doesn't simulate a click:</p>
  <pre class="lang-js prettyprint-override"><code>$('#click').click(function(){
      var value = $(this).attr(&quot;rel&quot;);
      $('#select').val(value);
      return false;
  });
  </code></pre>
  <pre class="lang-html prettyprint-override"><code>&lt;select id=&quot;select&quot; name=&quot;select&quot;&gt;
      &lt;option&gt;Select...&lt;/option&gt;
      &lt;option value=&quot;1&quot;&gt;Option 1&lt;/option&gt;
      &lt;option value=&quot;2&quot;&gt;Option 2&lt;/option&gt;
  &lt;/select&gt;
      
  &lt;a href=&quot;#&quot; rel=&quot;1&quot; id=&quot;click&quot;&gt;Click for option 1&lt;/a&gt;
  </code></pre>