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

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -