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.
Sivakumar KonetiRank #1,557 · 1K reputationPosted Jun 29, 2019, 3:32 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jun 28, 2019, 4:21 AM EDT
Sujeet RamanRank #1,329 · 1.3K reputationPosted Jun 28, 2019, 5:03 AM EDT
Jaish MathewsRank #225 · 11K reputationPosted Jun 28, 2019, 4:05 PM EDT
Bikash SahuRank #1,751 · 863 reputationPosted Jun 28, 2019, 6:12 PM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted Jun 29, 2019, 11:04 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 30, 2019, 4:22 AM EDT
Muthu KumarRank #935 · 2.2K reputationPosted Aug 21, 2019, 10:05 PM EDT
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
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts