I have a problem with my code.
case like this:
I have a dropdown, if selected \"personal\" it appeared the new dropdown that contains the data that is retrieved from
The best way would probably be with an ajax call, anyway if you are declaring the script in the same page with the php, you can json encode the array with the options so that you will be able to access it into the javascript, like this: