Validate Date for eligibility above 18 year's : <p>I have used the following for date input</p>

<pre><code>&lt;tr&gt;
&lt;td&gt;Date of Birth :&lt;/td&gt;
&lt;td&gt;&lt;input type="date" name="dob" required="required" /&gt;&lt;/td&gt;
</code></pre>

<p>
  </p>

<p>I want to validate the Date of birth whether it's above 18 years or not. I have no idea how to code for that.</p>
