How to remove white space and special characters using jquery
<p>I have a form with an input field.
I show the value of the field on the page.</p>

<pre><code>$(document).ready(function() {
     $('#company').change(function(){
         $('#compname').html($('#company').val());
     });
});
</code></pre>

<p>I need to strip all white space and any special characters entered into the field. (So only alpha/numeric characters are shown and without spaces).</p>