How to validate Date of Birth in javascript with input[type="Date"]? : <p>I know there are a few questions out there on this topic, but they all are either unclear or, they are using <code>input[type="text"]</code> in them.</p>

<p>In my HTML form I have an input of type date. So now I want to make sure that the date of birth is valid(Date is not in the future!). How do I do this?</p>
