Created
May 17, 2019 09:31
-
-
Save koentjuh1/87221436b8ed72c28f9c146b1057fa89 to your computer and use it in GitHub Desktop.
Gravityforms Datepicker | jQuery UI min age 18 years.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.datepicker').datepicker({ | |
minDate: new Date(1900,1-1,1), maxDate: '-18Y', | |
dateFormat: 'dd/mm/yy', | |
defaultDate: new Date(1970,1-1,1), | |
changeMonth: true, | |
changeYear: true, | |
yearRange: '-110:-18' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment