<div class="form-group d-flex flex-wrap">
    <label class="flex-grow-1">Teamlid</label>
    <div class="m-fieldWrap cursor-pointer position-relative w-100">
        <div tabindex="0" class="a-avatar bg-brown rounded-circle d-inline-flex justify-content-center align-items-center" data-content="">
            MV

        </div>

        <select name="selectField" class="form-control cursor-pointer  -pl">
            <option>Marcella Vonk</option>
            <option>Jappy Toering</option>
            <option>Robert Giezen</option>
        </select>
    </div>

</div>
<div class="form-group d-flex flex-wrap">
    <label class="flex-grow-1">{{label}}</label>
    {% if avatar %}<div class="m-fieldWrap cursor-pointer position-relative w-100">{% render '@avatar' %}{% endif %}
        <select name="selectField" class="form-control cursor-pointer {% if avatar %} -pl{% endif %}{% if invalid %} is-invalid{% endif %}{% if valid %} is-valid{% endif %}" {% if disabled %}disabled{% endif %}>
            {% for item in items -%}<option>{{ item }}</option>{% endfor %}
        </select>
    {% if avatar %}</div>{% endif %}
    {% if show_feedback %}<div class="{% if valid %}valid-feedback{% endif %}{% if invalid %}invalid-feedback{% endif %}{% if feedback_message %} d-inline-block{% endif %}"><strong>{{feedback_message}}</strong></div>{% endif %}
</div>
{
  "label": "Teamlid",
  "items": [
    "Marcella Vonk",
    "Jappy Toering",
    "Robert Giezen"
  ],
  "disabled": false,
  "avatar": true,
  "invalid": false,
  "valid": false,
  "feedback_message": "Select field is invalid",
  "show_feedback": false
}

How this field works

When picking a teammember, the avatar on the left side of the select field should be updated with the correct initials and color after selecting.