Issue in setting the value in select after form success in modal

I have a select person on my webpage which on selecting the value to add shows a modal that adds a person in my select dropdown. Now I want to show the recently added member as the selected value on my select.So I tried setting the value through action and javascript but still not working. Please help me with this.

Community Page
Last updated: