When you change the dropdown list, the respective currency code of the country will be displayed in the textbox which is fetched from PHP using Ajax.

Country :

Currency :