Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i am using jquery UI plug in for date picker. it is for my job portal application.
my problem is that the job applicant should be 18 years or above 18 years of age.
how can i validate the year range..

my code is
XML
$(".date").datepicker({ changeYear: true, changeMonth: true, yearRange: '1940:2010' });


thanks

Afsal
Posted
Updated 30-Jul-12 20:11pm
v2

1 solution

Please see the post Age Validation from Birthdate using DatePicker[^].
Here the post contains code for calculating the age with datepicker.
Thanks...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900