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
The best and modern way is typeof (variable) if you care about real number not number from string. For example:
var a = 1; var b = '1'; typeof a: // Output: "number" typeof b: // Output: "string