title: How to change max or min value of input type date from JS
body: <p>I have two input type dates like:</p>
  
  <pre><code>&lt;input type="date" name="first_date"&gt;
  </code></pre>
  
  <p>and other like:</p>
  
  <pre><code>&lt;input type="date" name="second_date" min="first_date"&gt;
  </code></pre>
  
  <p>now what I want to do is that when <code>first_date</code> is selected than the minimum range of the <code>second_date</code> is auto filled by javascript. </p>
  
  <p>Any idea how to do this.</p>