title: Javascript: Disable select options in Select 2 based on Select 1
body: <p>My program has a two select fields with the same options.</p>
  
  <pre><code>&lt;select id="startDate"&gt;
      &lt;option value="2014-07-11"&gt;July. 11th, 2014&lt;/option&gt;
      &lt;option value="2014-07-25"&gt;July. 25th, 2014&lt;/option&gt;
      &lt;option value="2014-08-08"&gt;August. 8th, 2014&lt;/option&gt;
      &lt;option value="2014-08-22"&gt;August. 22th, 2014&lt;/option&gt;
      &lt;option value="2014-09-05"&gt;September. 5th, 2014&lt;/option&gt;
  &lt;/select&gt;
  
  
  &lt;select id="endDate"&gt;
      &lt;option value="2014-07-11"&gt;July. 11th, 2014&lt;/option&gt;
      &lt;option value="2014-07-25"&gt;July. 25th, 2014&lt;/option&gt;
      &lt;option value="2014-08-08"&gt;August. 8th, 2014&lt;/option&gt;
      &lt;option value="2014-08-22"&gt;August. 22th, 2014&lt;/option&gt;
      &lt;option value="2014-09-05"&gt;September. 5th, 2014&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>What I am trying to accomplish is on change of the startDate based on the selection, disable all options before that date in endDate. So for example, if August. 8th, 2014 is selected in startDate, disable the first 2 options in endDate. So July 11th and July 15th should be disabled in endDate.</p>
  
  <p>How could I go about achieving this?</p>
  
  <p>Thanks.</p>