Created
May 17, 2019 09:31
Gravityforms Datepicker | jQuery UI min age 18 years.js
This file contains 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