title: Jquery/Javascript: Compare two dropdown min and max values?
body: <p>I have two dropdowns. One has min values and the other has max values.</p>
  <p>I'm trying to disable options from max dropdown if they are less than min values</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-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;select id="min"&gt;
      &lt;option&gt;Select min&lt;/option&gt;
      &lt;option value=0&gt;0&lt;/option&gt;
      &lt;option value=1&gt;1&lt;/option&gt;
      &lt;option value=2&gt;2&lt;/option&gt;
      &lt;option value=3&gt;3&lt;/option&gt;
      &lt;option value=4&gt;4&lt;/option&gt;
      &lt;option value=5&gt;5&lt;/option&gt;
    &lt;/select&gt;
  
    &lt;select id="max"&gt;
      &lt;option&gt;Select max&lt;/option&gt;
      &lt;option value=2&gt;2&lt;/option&gt;
      &lt;option value=3&gt;3&lt;/option&gt;
      &lt;option value=4&gt;4&lt;/option&gt;
      &lt;option value=5&gt;5&lt;/option&gt;
      &lt;option value=6&gt;6&lt;/option&gt;
      &lt;option value=7&gt;7&lt;/option&gt;
    &lt;/select&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>