jQuery UI日期选择器年份范围验证 [英] jquery ui date picker year range validation
本文介绍了jQuery UI日期选择器年份范围验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我正在为日期选择器使用jquery UI插件.这是我的求职门户应用程序.
我的问题是求职者必须年满18岁或18岁以上.
我如何验证年份范围..
我的代码是
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
$(".date").datepicker({ changeYear: true, changeMonth: true, yearRange: '1940:2010' });
谢谢
Afsal
thanks
Afsal
推荐答案
(.date").datepicker({changeYear:true,changeMonth:true,yearRange:'1940:2010'});
(".date").datepicker({ changeYear: true, changeMonth: true, yearRange: '1940:2010' });
谢谢
Afsal
thanks
Afsal
请参阅帖子使用DatePicker从出生日期进行年龄验证 [^ ] .
这里的帖子包含使用datepicker计算年龄的代码.
谢谢...
Please see the post Age Validation from Birthdate using DatePicker[^].
Here the post contains code for calculating the age with datepicker.
Thanks...
这篇关于jQuery UI日期选择器年份范围验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文