Hi All,
i have one textbox and i did that to validations i.e. is when user
enters the max length it should not allow to enter the words more than
maxlength that im doing ... but the thing is im not displaying error msg
when the user able to enter more than max length... can anybody please help
me in this regard.
*this is my code..............*
<div class="col-md-10">
<input class="form-control text-box
single-line" ng-style="{ border-color: getColor() }" ng-maxlength="25"
maxlength="25" ng-pattern="word"
ng-model=" Role" id="Role" name="Role"
type="text" value="" autofocus required>
<span class="field-validation-valid
text-danger" ng-show="submitted && frole_add.Role.$error.required">The Role
is Required</span>
<span class="field-validation-valid
text-danger" ng-show="frole_add.Role.$error.maxlength" >
Maximum 25 Characters Allowed
</span>
<span class="field-validation-valid
text-danger" ng-show="frole_add.Role.$error.pattern">
Special characters and Numbers
not allowed
</span>
</div>
Thanks®ards
Praveen
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.