Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravityforms Datepicker | jQuery UI min age 18 years.js
$('.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