Only allows letters to be typed on input

PHOTO EMBED

Tue Sep 13 2022 08:50:35 GMT+0000 (Coordinated Universal Time)

Saved by @Kristi #javascript #html

<input onkeydown="return /[a-z]/i.test(event.key)" >
  
//allow WHITE space as well
<input onkeydown="return /[a-z\s]/i.test(event.key)" >
content_copyCOPY

https://stackoverflow.com/questions/19508183/how-to-force-input-to-only-allow-alpha-letters