+ 1

How can I make this display a a message when a number is typed?

https://code.sololearn.com/Wr2AHCLuGb7l/?ref=app I need it to display a message stating that numbers aren't allowed, but only whenever a number is typed. (Not for every instance of a number, but as long as at least 1 number is present in the input box)

21st Aug 2018, 10:32 PM
Daniel Cooper
Daniel Cooper - avatar
1 Resposta
+ 3
Try the '[0-9]' expression from here with your 'match' function. https://www.w3schools.com/jsref/jsref_obj_regexp.asp
22nd Aug 2018, 1:17 AM
Duncan
Duncan - avatar