大佬教程收集整理的这篇文章主要介绍了jQuery验证插件 – 仅限数字,最小和最大长度 – 空间问题,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有以下示例(LIVE EXAMPLE):
形成:
<form class="form" id="FeedBACk-form" method="post" action="#"> <label for="phone">Contact number:</label> <input type="text" value="" id="phone" name="phone" class="required"> <br class="clr"> <div class="form-buttons"> <input id="submit" type="submit" value="Submit" class="button" > </div> <br class="clr"> <br /><br /> </form>
jQuery的:
$("#FeedBACk-form").validate({ rules: { phone: { number: true,// as space is not a number it will return an error minlength: 6,// will count space maxlength: 9 } } });
我有两个问题,都与空间使用有关.
以上是大佬教程为你收集整理的jQuery验证插件 – 仅限数字,最小和最大长度 – 空间问题全部内容,希望文章能够帮你解决jQuery验证插件 – 仅限数字,最小和最大长度 – 空间问题所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。