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

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -