title: Set minimum datepicker "form" and "to" in javascript
body: <p>I have the following form made for a date selection:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
    &lt;label for="id_vehicle"&gt;Request for: &lt;?php echo $vehicle-&gt;brand?&gt; &lt;?php echo $vehicle-&gt;model?&gt;&lt;/label&gt;
    &lt;input type="hidden" id="id_vehicle" name="id_vehicle" value = "&lt;?php echo $vehicle-&gt;id_vehicle?&gt;"&gt;
    &lt;br&gt;
    &lt;label for="from"&gt;From&lt;/label&gt;
    &lt;input type="date" id="from" name="from"&gt;
    &lt;label for="to"&gt;to&lt;/label&gt;
    &lt;input type="date" id="to" name="to"&gt;
    &lt;/div&gt;
    &lt;div class="form-group" style="padding-bottom: 1em;"&gt;
    &lt;input type="submit" class="btn btn-primary col text-center"  value="Request"&gt;
    &lt;/div&gt;
    &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need to have the <code>from</code> date minimum value as the today date and the <code>to</code> date >= of the <code>from</code> date. I'm trying to do so with datepicker, but I'm a newbie with javascript, so I was wondering if someone could help me. Thanks!</p>