+ 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?

24th Feb 2018, 4:08 AM
Pankaj Sharma
5 Antworten
+ 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
24th Feb 2018, 4:42 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 13
Validate if it contains letters or not using RegExp
24th Feb 2018, 4:35 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 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
24th Feb 2018, 4:37 AM
Pankaj Sharma
+ 2
Thanks for the support Swapnil👍
24th Feb 2018, 4:53 AM
Pankaj Sharma