Strip white spaces on input
<p>I have a field that does not need any white spaces. I need to remove any as they are entered. Here's what I'm trying... no luck so far</p>

<pre><code>$('#noSpacesField').click(function() {
    $(this).val().replace(/ /g,'');
});
</code></pre>
