jquery val() chopping off result after first space
<p>When I call:</p>

<pre><code>var status = $('#status').val();
</code></pre>

<p>And the value is set to something with a space (in this case "Please Select..."), the status variable comes back with "Please", chopping off everything after the first space.</p>

<p>After further testing, I see this appears to only happen with Combo Boxes</p>

<p>Here's the markup:</p>

<pre><code>&lt;select name = "status" id="status" class="wide_field"&gt;
        &lt;?php
            populate_list("statuses.txt");
        ?&gt;
    &lt;/select&gt;
</code></pre>

<p>And the php</p>

<pre><code>            function populate_list($list_file)
            {
            echo "&lt;option value=Please Select...&gt;Please Select...&lt;/option&gt;";
                $file = file($list_file,$file);
                for($i=0;$i&lt;count($file);$i++)
                {
                    echo "&lt;option value=".$file[$i]."&gt;".$file[$i]."&lt;/option&gt;";
                }
            }
</code></pre>
