1
我正在使用BootstrapValidator驗證我的電子郵件輸入框。它完美的工作,但是我想通過驗證來實現某個電子郵件域「@ test.com」,我該怎麼做?阻止特定電子郵件域上的BootstrapValdiation
這裏是代碼:
email: {
message: 'Your email must be in the format "[email protected]"',
validators: {
notEmpty: {
message: 'Your email is required and cannot be empty'
},
emailAddress: {
message: 'The value is not a valid email address'
}
}
},
非常感謝你的朋友 – 2014-09-19 19:13:22