hi, i need to restrict the digits which user can input in a text box.I dont need any html code i am using keyup event.Is there any way to use character code? or using event?
validateKeys(evt) {
)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muthu KumarPosted Aug 22, 2019, 2:05 AM
Here is an solution contained here for keup,
https://stackoverflow.com/questions/9841363/how-to-restrict-number-of-characters-that-can-be-entered-in-html5-number-input-f
For key press event solution here,
https://stackoverflow.com/questions/22086823/limit-number-of-characters-in-input-type-number?rq=1
Jignesh KumarPosted Jun 30, 2019, 8:22 AM
Gajendra JangidPosted Jun 30, 2019, 3:04 AM
Sivakumar KonetiPosted Jun 29, 2019, 7:32 AM
Bikash SahuPosted Jun 28, 2019, 10:12 PM
Jaish MathewsPosted Jun 28, 2019, 8:05 PM
Sujeet RamanPosted Jun 28, 2019, 9:03 AM
Rajanikant HawaldarPosted Jun 28, 2019, 8:21 AM