Roo/bootstrap/Input.js
[roojs1] / Roo / bootstrap / Input.js
index 21f9ea1..fc009f3 100644 (file)
@@ -680,9 +680,11 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
         }
         
         if(value.length < this.minLength){
+            this.invalidText = String.format(this.minLengthText, this.minLength);
             return false;
         }
         if(value.length > this.maxLength){
+            this.invalidText = String.format(this.maxLengthText, this.maxLength);
             return false;
         }
         if(this.vtype){