我如何验证加拿大邮政编码 [英] How do I validate canadian postal code
本文介绍了我如何验证加拿大邮政编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道从哪里开始我尝试查找没有任何效果,我只需要一个javascript
代码在< script>中工作< /脚本>
另外我需要知道< input type =???>
并且还需要使用此提交按钮
< input type =buttonvalue =提交onClick =checkinput()/> |
I have no clue where to start I tried looking it up nothing worked, all I need is a javascript
code that works in <script> </script>
Also I need to know the <input type="???">
and also it needs to work with this submit button
<input type="button" value="Submit" onClick="checkinput()"/> |
推荐答案
Google是你的朋友:Be很好,经常拜访他。他可以比在这里发布问题更快地回答问题......
使用您的主题进行快速搜索,因为搜索字词超过75,000次点击:验证加拿大邮政编码Javascript [ ^ ]
第一个链接解决了它: http://stackoverflow.com/questions/12773523/javascript-regex-for-canadian-postal-code [ ^ ]
将来,请尝试自己做至少基础研究,不要浪费你的时间或我们的时间。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
A very quick search using your subject as the search term gave over 75,000 hits: "validate canadian postal code Javascript"[^]
The first link solves it: http://stackoverflow.com/questions/12773523/javascript-regex-for-canadian-postal-code[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
这篇关于我如何验证加拿大邮政编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文