See if Input Has Spaces with jQuery
<p>I'm trying to write a function that reads a inputs value, and determines if a space has been used in it's creation. I'm not trying to trim anything -- just see if it would have needed the ability to trim.</p>

<p>I'm not even sure where to begin on this, so I don't have any code to look at. Please help if you can!</p>

<p>I was trying this solution but it doesn't seem to work (I don't think I'm using .has() correctly)</p>

<pre><code>if ($('#id').val().has(" ")) {
            alert('has spaces')
        }
</code></pre>
