0
Can anyone give me validation for input field where it shouldn't accept blank spaces.
If possible give one example in openui5.
5 odpowiedzi
+ 2
Okay, i normally use regex
if(yourstr.match(/^\s+/)) //found whitespace at beginning
+ 1
Whitespace or empty string ?
+ 1
Whitespace at beginning. It should accept characters at the beginning
+ 1
can use === instead of match method?
I think it works
0
No, but startWith() could works.