title: Strip spaces and make string lowercase with Javascript
body: <p>I have the following script that duplicates the content I'm entering in one field into another.</p>
  
  <p><strong>DEMO:</strong> <a href="https://jsfiddle.net/wk3nmc76/" rel="noreferrer">https://jsfiddle.net/wk3nmc76/</a></p>
  
  <p>I was wondering if it's possible I could change the 2nd field to strip spaces &amp; make the value lowercase?</p>
  
  <pre><code>&lt;p&gt;&lt;input type="text" name="full_name" id="full_name" placeholder="Full Name"/&gt;&lt;/p&gt;
  &lt;p&gt;&lt;input type="text" name="last_name" id="last_name"&gt;&lt;/p&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>$('#full_name').keyup(function(){
     $('#last_name').val(this.value);
  });
  </code></pre>