0
I have a PHP program that in the first select returns the directories of my root (I did in PHP), but in the onchange event of this select I want to populate the other select with the Ubdirectories of the first one and I searched only to do this with javascript. What function should I use to return these subdirectories? Each time I select a directory from the first one returns the subs in the second one.
Select a directory: $folders"; $i++; } ? > Select a month: $folders"; $i++; } ? > OK
Hello Sonia, show us what you’ve tried in code form. Try to expose how you get this list of directories and subdirectories. It is static(not variable) or dynamic. Is the search for subdirectories done asynchronously or have the values already been loaded? try to give us more information.
– Caique Romero
Hello Sonia! Take a look at the questions I marked as duplicates. If you still have doubts try to be more specific in the next question about which part you have difficulty with. And welcome!
– Sergio