简体   繁体   English

JQueryMobile和信用卡输入

[英]JQueryMobile and Credit Card Entry

Does JQueryMobile have good support for entering credit card information. JQueryMobile是否对输入信用卡信息有很好的支持。 Users have a really difficult time entering 16 digits and followed by expiration dates etc. I would like to see a good JQueryMobile view example of how to enter credit card/reward card details. 用户很难输入16位数字,然后是到期日期等。我希望看到一个很好的JQueryMobile视图示例,了解如何输入信用卡/奖励卡详细信息。 Any suggestions for keeping the Android keyboard properly positioned during this process as well? 有关在此过程中保持Android键盘正确定位的建议吗?

You should be able to follow the demo examples: 您应该能够按照演示示例进行操作:

Input for the 16 digit, Security Code on the back ( sometimes front ) of the card 在卡的背面(有时是正面)输入16位数的安全代码

Example ( Note: The characters in a password field are masked [shown as asterisks or circles] ): 示例(注意:密码字段中的字符被屏蔽[显示为星号或圆圈]):

<input type="password" name="credit_card_number" id="credit_card_number" value="" placeholder="1234567890123456">
<input type="password" name="security_code" id="security_code" value="" placeholder="123">

You could use a mask feature if you don't like the password option, not sure if there are any plugins to 'mask previous input character onblur mask all' but that would make for a nice one 你可以使用一个掩码功能,如果你不喜欢密码选项,不确定是否有任何插件'掩盖以前的输入字符onblur掩盖所有'但这将是一个很好的一个

DateBox for the Expiration Date 截止日期的DateBox

Maybe add some Credit Card validation as well? 也许还要添加一些信用卡验证?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM