javascript验证年龄 [英] javascript validation for age
本文介绍了javascript验证年龄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文本框如下
textbox1.text 100
在我输入的textbox1中年龄超过100表示,显示您输入的年龄介于1到100之间的消息。
为什么我可以使用javascript验证。
I have one textbox as follows
textbox1.text 100
In textbox1 when i enter age more than 100 means, shows the message you enter age between 1 to 100.
for that how can i validate using javascript.
推荐答案
这个问题很简单。首先学习JavaScript编程,以便从长远来看可以帮助自己。
1.首先学习基本知识: http://www.w3schools.com/js/ [ ^ ]
2.然后: http://www.w3schools.com/js/js_validation .asp [ ^ ]
This question is trivial. Start by learning JavaScript programming so that you can help yourself in the long run.
1. Learn the basic first: http://www.w3schools.com/js/[^]
2. Then: http://www.w3schools.com/js/js_validation.asp[^]
我希望这对你来说很实用..
I hope this is use full for you..
<script type="text/javascript">
(document).ready(function(){
(document).ready(function () {
这篇关于javascript验证年龄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文