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 -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -