Handle multiple Selectbox

Ask the community r our support engineers for answers to questions.
I have created two Selectbox with different values. Example, I created one with Country names and other with Capitals

When I select the country name, I need to display information related to country on the same page
when I select the Capitals, need to display Capital Details
Can you please help