There is a form where from this field
<input type="text" class="form-control" id="fio"> need to send a separate first name, last name and middle name. json:
name: 'username', surname: 'usersurname', lastname: 'userlastname' Tell me, please, how to do this? With separate fields for the name of the fam is clear, you can
name: $('#name').val(), surname: $('#surname').val(), lastname: $('#lastname').val(), But how to send data from one field without a clue.