JSRS - Javascript Remote Scripting
Way back in the 2000's I was looking at Brent Ashley's JavaScript Remote Scripting.
I was also hosting my own website from a Linux server from my basement in Toronto. One of the "bits" of code that I was hosting was a working demo of Brent's "Auto-fill" drop-downs. Brent's demo was a collection of 4 dropdown boxes that were populated from the server. The second and third boxes were populated with options depending on what was selected in the preceding downdown. I think the test data was based on an automotive theme and allowed the selection of car options. Sadly, Brent's demo is no longer live on his old website, but the bones are there.
Again, sadly, the code that I had downloaded and adapted for my own server has been lost. The file was martin_dropdown.php.
Looking in my old backups I cannot find the source code. However, a lot has happened since that time and AJAX and XMLHttpRequest Objects are available to implement similar functionality and a lot more.