javascript - How to validate date within a bound using java script -


i have input field follows:

<input type="date" id="datepicker"> 

now want validate field such user can't select date after system's date , can't select date before date specified.

for example, if today's date is, 01-oct-2015, user can't select date after 01-oct-2015 , he/she can't select date before, let's say, 02-jan-2013.

how using javascript?


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -