用javascript好写,但刚接触idealform框架,不知道其中的方法和属性。在百度上找也没找到,只有demo,没找到api,看不懂什么意思。请大神们指教。。。就是想判断pass与repass的值是否相等。
https://github.com/elclanrs/jq-idealforms#custom-rules
我一般用jquery-validate。idealform有类似于equalTo 这样的字段么?
官网上的Built-in Rules上面就写了有:
equalto:name: Must be equal to another field where name is the name of the field.
在repassword里面加上
equalto:password;