DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
JavaScript allow only numbers in input alert
this.form = fb.group({ number: ['', [Validators.required, Validators.pattern("^[0-9]*$")]] })
Source by www.itsolutionstuff.com #
PREVIOUS
NEXT
Tagged:
#JavaScript
#numbers
#input
#alert
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit