用于日期验证的jQuery代码 [英] Jquery code for date validation

查看:71
本文介绍了用于日期验证的jQuery代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要验证日期控件的代码

请找到在运行时生成的html代码以及随附的原始html:

这是我从生成的html中获得的日期控件:

I need a code for validating date controls

Please find the html code which generated at runtime and original html attached:

This is my date control from generated html:

<input name="ctl00$PlaceHolderMain$SPWebPartManager$g_3c1ba10a_23ec_4ab5_b303_18f8bd7ee7e7$ctl00$gdvItinerary$ctl02$txtTravelDate" type="text" maxlength="10" id="ctl00_PlaceHolderMain_SPWebPartManager_g_3c1ba10a_23ec_4ab5_b303_18f8bd7ee7e7_ctl00_gdvItinerary_ctl02_txtTravelDate" style="width:110px;" /> 



当我将此日期控件留在第二行时,我想进行验证.

PS:在包含日期控件的按钮单击事件上,将在网格中添加一行,该日期控件应使用上一行中的日期控件进行验证,

即:第一行中的日期应小于第二行中的日期.

我有这个插件:

http://www.position-relative.net/creation/formValidator/demos/demoValidators.html



And i want to do the validation when i leave this date control in the second row.

PS: A row will be added to the grid on a button click event which contains a date control, this date control should be validated with the date control in the previous row,

ie: Date in the first row should be less that date in the second row.

I have this pluggin :

http://www.position-relative.net/creation/formValidator/demos/demoValidators.html

推荐答案

PlaceHolderMain
PlaceHolderMain


SPWebPartManager
SPWebPartManager


g_3c1ba10a_23ec_4ab5_b303_18f8bd7ee7e7
g_3c1ba10a_23ec_4ab5_b303_18f8bd7ee7e7


这篇关于用于日期验证的jQuery代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆