+ 2
Regarding form validation issue
In the example of form validation what if user enter spaces in both fields so visually the field is blank but code will still run. How to overcome this problem?
4 ответов
+ 16
Here is a lesson on regex.
Although it's python, the regex syntax is almost the same.
https://www.sololearn.com/learn/Python/2475/?ref=app
here is one of my js codes showing use of regex
https://code.sololearn.com/WaX6lplDjQ2g/?ref=app
+ 13
Validate if it contains letters or not using RegExp
+ 2
Thank you for your answer Swapnil but it would be great if u can explain me in some details as im naive to javascript
+ 2
Thanks for the support Swapnil👍