<input type="text" id="personName" />
Given possible values like:
- James
- James Bond
- James Van Bond
- James Van Bond the Very First
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.
Possible? Is split the way to do this?
Thanks