// SKY iTEch // LiveValidation 1.3 (standalone version) ///var f1 = new LiveValidation('email'); f1.add(Validate.Email); var field1 = new LiveValidation( 'name', {onlyOnSubmit: true } ); field1.add( Validate.Presence ); var field2 = new LiveValidation( 'email'); field2.add( Validate.Email ); field2.add( Validate.Presence ); field2.add( Validate.Length, { minimum: 10} ); var field4 = new LiveValidation( 'message', {onlyOnSubmit: true } ); field4.add( Validate.Presence ); var field5 = new LiveValidation( 'mobile'); field5.add( Validate.Numericality ); field5.add( Validate.Length, { minimum: 10} );