0

Can anyone give me validation for input field where it shouldn't accept blank spaces.

If possible give one example in openui5.

20th Nov 2018, 6:17 AM
Pavankumar A N
Pavankumar A N - avatar
5 odpowiedzi
+ 2
Okay, i normally use regex if(yourstr.match(/^\s+/)) //found whitespace at beginning
20th Nov 2018, 6:22 AM
Taste
Taste - avatar
+ 1
Whitespace or empty string ?
20th Nov 2018, 6:20 AM
Taste
Taste - avatar
+ 1
Whitespace at beginning. It should accept characters at the beginning
20th Nov 2018, 6:21 AM
Pavankumar A N
Pavankumar A N - avatar
+ 1
can use === instead of match method? I think it works
20th Nov 2018, 6:32 AM
Pavankumar A N
Pavankumar A N - avatar
0
No, but startWith() could works.
20th Nov 2018, 6:50 AM
Taste
Taste - avatar