$ (' #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!?