2 select elements

I need for my website 2 select elements. First select element shows the teams and second shows all players whichever team we picked. The main problem is that I want the whole thing to go through without refreshing the page. Is that even possible?

Just so I understand you correctly, you want two drop-down menus. The first one has a list of teams, and the second one has a list of players on that team.

You could use AJAX to do this. Make an AJAX call to a PHP file when the first drop-down updates, and have that file return the code for the second drop-down.

Do note that each AJAX call will result in a hit, so don’t use it a lot or you risk getting suspended.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.