如何格式化信用卡输入字段和失效日期 [英] How to format credit card input fields and expiry date

查看:116
本文介绍了如何格式化信用卡输入字段和失效日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法用html / css编码?



我想将其格式设置为过期框中/两边的两个数字。
我只是在表单中放置/以显示我想要做的事情。


$ b

< input class =inputCardtype =textname =creditCard1id =creditCard1/> 
-
< input class =inputCardtype =textname =creditCard2id =creditCard2/>
-
< input class =inputCardtype =textname =creditCard3id =creditCard3/>
-
< input class =inputCardtype =textname =creditCard4id =creditCard4/>
< br />
信用卡到期:
< input class =inputCardtype =textname =expiryid =expiry/>

我想格式化它,因此它只接受每个信用卡文本框中的四个数字。 p>



我不需要代码来验证我的数据与JavaScript(我知道如何做到这一点)。

解决方案

我会说要做这样的事情:

 信用卡过期时间:
发送“验证码”获取 | 15天全站免登陆