Javascript-bootcss Verification Plugin Sco.valid.js

Source: Internet
Author: User
$ (' #registerForm '). Scojs_valid ({rules: {account: [' Not_empty ', {' min_length ': 2},{' max_length ': 20}], Email: [' not_empty ', ' email '], password: [' Not_empty ', {' Min_length ': 6}], Confirmpass                Word: [{matches: ' password '}], code:[' Not_empty '}, messages: {account: {            Not_empty: "Please enter a registered account", Min_length: "Account no less than 2 characters", Max_length: "Account cannot exceed 20 characters"},  Email: {not_empty: "Please enter email", Email: "Please enter the correct mailbox"}, Password: {not_empty: "Please enter the login password, case-sensitive", min_length: "The password is too short, at least 6 bit Oh"}, Confirmpa            ssword:{matches: "Two times input password inconsistent",}, code:{not_empty: "Please enter a verification code", }}, wrapper: '. Form-group ', onsuccess:function (response, Validator, $form) {T Ipsop (Response.data,respOnse.status);                if (Response.url) {setTimeout (function () {window.location.href=response.url;},3000); }            }    });

That's the validation,
I now want to change, the time to leave the cursor only need to verify, do not know how to change!?

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}], Confirmpass                Word: [{matches: ' password '}], code:[' Not_empty '}, messages: {account: {            Not_empty: "Please enter a registered account", Min_length: "Account no less than 2 characters", Max_length: "Account cannot exceed 20 characters"},  Email: {not_empty: "Please enter email", Email: "Please enter the correct mailbox"}, Password: {not_empty: "Please enter the login password, case-sensitive", min_length: "The password is too short, at least 6 bit Oh"}, Confirmpa            ssword:{matches: "Two times input password inconsistent",}, code:{not_empty: "Please enter a verification code", }}, wrapper: '. Form-group ', onsuccess:function (response, Validator, $form) {T Ipsop (Response.data,respOnse.status);                if (Response.url) {setTimeout (function () {window.location.href=response.url;},3000); }            }    });

That's the validation,
I now want to change, the time to leave the cursor only need to verify, do not know how to change!?

  • 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.