title: How validation date to not less than the start date in textbox using javascript
body: <p>I have 2 date:</p>
  
  <p>start date</p>
  
  <pre><code>&lt;input type="text" name="startdate" value="2016-04-08"&gt;
  </code></pre>
  
  <p>End date</p>
  
  <pre><code>&lt;input type="text" name="enddate" value="2016-09-02"&gt;
  </code></pre>
  
  <p>but how to use javascript to validate days of the end date to not less than the days from start date.</p>
  
  <p>like </p>
  
  <pre><code>startdate '08' = end date '02' and 'not ok'
  or
  startdate '08' = end date '08' and 'ok'
  </code></pre>
  
  <p>thankyou</p>