+ 1
Can somebody pleeeaaasseee help me?... :'3
This is the lil' problem I have. I am doing a web page, where I am writing a CYOA type of story. The thing is that I require some user imput that is obligatory a string [not a number, special character(- ! ? * - {} etc)]On the .js that Im writing in JQuery, is something like this: if (inputValue !=""){ //this is the part where I need help } The help I need is, how can I put a condition inside that if, that says that if the value is not a number or a special character either It continues the code continues?
2 Answers
+ 4
Want to Learn Web development?
Enter here:
https://code.sololearn.com/W7cKz5yfd9dd/?ref=app
+ 2
Use the function isNaN(value) to check the value. NaN means "Not a Number". It returns true if you use Strings or other datatypes.