使用jQuery .NET日期验证 [英] .NET date validation with jQuery

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

问题描述

我需要做的日期一些基本的验证,诸如此类验证该日期大于今天,验证该日期是真实的(即 99/99/9999 )等,基本上,我需要什么模仿呢.NET与 DateTime.TryParse

I need to do some basic validation on a date, things like validating that the date is greater than today, validating that the date is real (i.e. 99/99/9999), etc. Basically, I need to emulate what .NET does with DateTime.TryParse.

有没有像在jQuery的东西吗?或者,我会过得更好了AJAX调用,以验证在C#中的日期?

Is there anything like that in jQuery? Or would I be better off making an AJAX call to validate the date in C#?

推荐答案

确认日期范围

http://jqueryui.com/demos/datepicker/
你可以使用这个..它是有很多的设置

http://jqueryui.com/demos/datepicker/ you could use this.. it's a decent tool with lots of settings

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

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