how to validate a white spaces in java script language...
Answers
Answered by
0
For checking if a string contains white space use a matcher and call its find method.
Attachments:
sory:
how to use trim function
Answered by
2
Answer:
^ matches the start of the string.
\s+ means at least 1, possibly more, spaces.
$ matches the end of the string.
Similar questions