How to set limit text in textbox and check email format using angularjs
Part 3:
Normally, no limit to enter number of characters in textbox. Minimum length or maximum length characters set in textbox so, display Too short! or Too long! messages. This concept is very useful for login page development and more.
Ex:
Set minimum length characters and maximum length characters in user name or password. User can enter two characters in text box, so display Too short message or user can enter more characters in text box, so display Too length message.
Sample Code:
Angularjs module:
ng-minlength and ng-maxlengt.
Note: external array binding concept include.
This comment has been removed by the author.
ReplyDelete