I\'m using forms in HTML and javascript. I would like an alert to pop up only if the user inputs a LETTER and clicks submit.
submit
So I have
Thanks, I used @str8up7od answer to create a function today which also checks if the input is empty:
function is_number(input) { if(input === '') return false; let regex = new RegExp(/[^0-9]/, 'g'); return (input.match(regex) === null); }