title: Detect when a specific <option> is selected with jQuery
body: <p>I'd like jQuery to detect when the option with the id <code>trade_buy_max</code> is selected.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
      $("option#trade_buy_max").select(function () {
          //do something
      });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;select name='type' id='type'&gt;
      &lt;option id='trade_buy' value='1' selected='selected'&gt;Buy&lt;/option&gt;
      &lt;option id='trade_buy_max' value='1'&gt;Buy max&lt;/option&gt;
      &lt;option id='trade_sell' value='2'&gt;Sell&lt;/option&gt;
      &lt;option id='trade_sell_max' value='2'&gt;Sell max&lt;/option&gt;
  &lt;/select&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I've tried the following, but it doesn't seem to work.</p>
  
  <p>Any ideas?</p>