Filter dynamic page content through 2 dropdowns

@ahmadnasriya
My dynamic page https://www.sokoltouskov. cz/soupiska/a-tym/2019-2020/
shows a list of football players. Retrieves their names and photos from the collection using a dataset.

There are different players for each season. The first dropdown should load a list of all teams. The second dropdown should respond to the first dropdown and display the seasons(years) according to the selected team.

The list of players is generated thanks to the parameters in the URL …/players/a-tym/ 2019-2020/

When I change the dropdown value of a team or season, a new page should load.

When the page first loads, both dropdowns should display the correct value depending on which team and season are being displayed.

This should be the functionality of the dynamic page. I hope I described it well. Thank you