我可以创建日期分隔符传统的ASP日期输入控件 [英] Can I create Date entry control with date separator for classic ASP

查看:200
本文介绍了我可以创建日期分隔符传统的ASP日期输入控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是用了一个经典的ASP应用程序的最新条目的日历控件。但是,日历控件是不是键盘友好,并采取数据输入更多的时间。所以,后来我加入日期验证一个简单的文本框。它工作正常。但是,用户需要把日期分隔符也。我希望把附带一个$ P $对配置日期格式和分离器的日期输入字段中,从而使用户简单地键入的号码和场导致验证以及

I was using a calendar control for entry of date in a classic-ASP application. But calendar control is not keyboard friendly and take more time for data entry. So later I added a simple text box with date validation. It works fine. However, the user need to put the date separator also. I wish to put a date entry field that comes with a pre-configured date format and separator, so that the user simply type on the numbers and the field cause a validation as well.

我怎样才能做到这一点?

How can I achieve this?

推荐答案

只需使用jQuery / javascript来掩盖日期文本字段。当用户输入的值,会自动格式化日期。也迫使正确的验证作为它的作品。

Just use jQuery/javascript to mask the date text field. It will automatically format the date as the user enters the values. Also forces correct validation as it works.

例如jQuery插件搜索:

for example jQuery plugins search for :

jQuery的日期面膜: http://digitalbush.com/projects/masked-input-plugin /

jquery date mask: http://digitalbush.com/projects/masked-input-plugin/

这篇关于我可以创建日期分隔符传统的ASP日期输入控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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