Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save koentjuh1/87221436b8ed72c28f9c146b1057fa89 to your computer and use it in GitHub Desktop.
Save koentjuh1/87221436b8ed72c28f9c146b1057fa89 to your computer and use it in GitHub Desktop.
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