title: How can I check if an input contains space characters only. I.e. one or more spaces only and no other characters
body: <p>I need to detect on focusout if an input field contains only spaces. ie 1 or more spaces only and not any other characters?</p>
  
  <p>At the moment it only detects if it contains 1 space only</p>
  
  <pre><code>$("#myInput").on("focusout",function(){
      if($(this).val() ==" "){ 
          //do work
      }
  });
  </code></pre>