0
我正在使用基础css进行前端设计,如何使用Abide(表单验证程序)。使用Abide进行表单验证
例子:..如果我需要让10只为外地的电话号码字符..
纠正我,如果我错了,因为我用粉底和web开发一个新手。
我已经尝试过这样做......这不工作..
version : '5.3.3',
settings : {
live_validate : true,
focus_on_invalid : true,
error_labels: true, // labels with a for="inputId" will recieve an `error` class
timeout : 1000,
patterns : {
alpha: /^[a-zA-Z]+$/,
alpha_numeric : /^[a-zA-Z0-9]+$/,
integer: /^[-+]?\d+$/,
// modified here
cvv : /^([0-9]){3,4}$/, \\ I have just copied the above line and renamed the pattern as "cv"
cv : /^([0-9]){3,4}$/' \\the pattern cvv works but the same when I copy pasted and renamed to cv does not work.
`
我添加了模式'abc:/ ^([0-9]){5,6} $ /' – user3025288 2014-10-02 07:59:20