javascript - How to check if a text is all white space characters in client side? -
How does a user input text have all white space characters (space, tab, enter etc) in the client side? / P>
Thank you in advance!
This question has been tagged with jQuery. In JQuery, you can run the following:
if ($ .trim ($ ('# myInput'). Val ()) == '') Warning ('input is empty') ;
Comments
Post a Comment