Search
 
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
Name
8+3 =