Skip to content
Advertisement

Check if string contains any letter (Javascript/jquery)

How can i check if a string contains any letter in javascript?

Im currently using this to check if string contains any numbers:

JavaScript

However i want it to see if it contains any letters.

Advertisement

Answer

You have to use Regular Expression to check that :-

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement