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
Post a Comment