Only show "State" menuSelect if the "Country" menuSelect has been selected

Hallo, I’m working with instantsearch.js in a Laravel 8 project. We have three menuSelects that are related to each other: Country, State and City. We need not to show State & City if the Country menuSelect hasn’t been selected, and also we need to reset the State & City if the Country has changed. I hope someone around here can help us. Thanks.