Javascript-bootcss verification plug-in sco. valid. js

Source: Internet
Author: User
{Code...} is the verification. I want to change it now. You only need to verify the time when the cursor leaves. I don't know how to change it !?
$ ('# RegisterForm '). scojs_valid ({rules: {account: ['not _ empty', {'min _ length': 2 },{ 'max _ length': 20}], email: ['not _ empty', 'email '], password: ['not _ empty', {'min _ length': 6}], confirmPassword: [{matches: 'Password'}], code: ['not _ empty']}, messages: {account: {not_empty: "Enter the registered account", min_length: "account no less than 2 characters", max_length: "account cannot exceed 20 characters"}, email: {not_empty: "Enter your email address", email: "Enter the correct email address"}, password: {not_empty: "Enter the logon password, case sensitive.", min_length: "The password is too short. At least 6 characters are required "}, confirmPassword: {matches: "The two passwords are inconsistent." ,}, code: {not_empty: "Enter the verification code" ,}}, wrapper :'. form-group ', onSuccess: function (response, validator, $ form) {tipsOp (response. data, response. status); if (response. url) {setTimeout (function () {window. location. href = response. url ;}, 3000 );}}});

This is the verification,
I want to change it now. I only need to verify the time when the cursor leaves. I don't know how to change it !?

Reply content:
$ ('# RegisterForm '). scojs_valid ({rules: {account: ['not _ empty', {'min _ length': 2 },{ 'max _ length': 20}], email: ['not _ empty', 'email '], password: ['not _ empty', {'min _ length': 6}], confirmPassword: [{matches: 'Password'}], code: ['not _ empty']}, messages: {account: {not_empty: "Enter the registered account", min_length: "account no less than 2 characters", max_length: "account cannot exceed 20 characters"}, email: {not_empty: "Enter your email address", email: "Enter the correct email address"}, password: {not_empty: "Enter the logon password, case sensitive.", min_length: "The password is too short. At least 6 characters are required "}, confirmPassword: {matches: "The two passwords are inconsistent." ,}, code: {not_empty: "Enter the verification code" ,}}, wrapper :'. form-group ', onSuccess: function (response, validator, $ form) {tipsOp (response. data, response. status); if (response. url) {setTimeout (function () {window. location. href = response. url ;}, 3000 );}}});

This is the verification,
I want to change it now. I only need to verify the time when the cursor leaves. I don't know how to change it !?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.