简体   繁体   English

jQuery自定义验证不起作用

[英]jQuery custom validation not working

I am writing a custom validation to compare if two phone numbers are equal or not, the code can be seen working at jsfiddle here . 我写一个自定义的验证来比较,如果两个电话号码是否相等,代码可以看出,在工作的jsfiddle 这里 The issue is that it is not validating although I entered an equal phone number, can anyone help me out? 问题是,尽管我输入了相同的电话号码,但仍无法验证,有人可以帮助我吗?

You can't validate against the form only fields. 您不能针对仅表单字段进行验证。 Look at this: http://jsfiddle.net/tNacL/8/ 看看这个: http : //jsfiddle.net/tNacL/8/

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

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