Parsing an Input value using Split
<pre><code>&lt;input type="text" id="personName" /&gt;
</code></pre>

<p>Given possible values like:</p>

<ul>
<li>James</li>
<li>James Bond</li>
<li>James Van Bond</li>
<li>James Van Bond the Very First</li>
</ul>

<p>I want to learn how to split the value by space, and then obtain the first value as FirstName and all the remaining values as Last name.</p>

<p>Possible? Is split the way to do this?</p>

<p>Thanks</p>
