title: How to remove spaces from a text input box
body: <p>I have the following jQuery shell which works:</p>
  
  <pre><code>  $('.jq_noSpaces').on('change', function(){
      alert('you changed the value in the box');
    });
  </code></pre>
  
  <p>My form attributes are <code>id="username" name="username"</code></p>
  
  <p>How do I use the following jQuery replace function to automatically change remove the spaces from the input field?</p>
  
  <pre><code>str.replace(/\s+/g, '');
  </code></pre>
  
  <p>Thanks</p>