0

I have an input text box i would like to restrict the input to a fix number of characters, for example stop displaying keystrokes after this maximum length has been reached in Angular JS 2

4
  • Did you try maxlength? Commented Nov 8, 2016 at 0:24
  • HTML's maxlength is exactly for this. Commented Nov 8, 2016 at 0:25
  • Possible duplicate of Limit the length of input field using angular2 Commented Nov 8, 2016 at 2:52
  • Thank you guys html max length worked for me Commented Nov 8, 2016 at 3:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.