Populate a select list

Hi, I am trying two populate the select2 list with a value from another modal window. For example, I have a modal window to enter data, after saving, I want to the entered data populated in another select2 list. How can I achieve that?