Hello all!
I have a little problem with a form. I'm searching for a way to make a dropdown change the value of either another dropdown or text field when selecting a value in the first dropdown.
But it's not just taking the value from 1 to 2. Here's what I need.
I have a dropdown with a long list of countries. All these countries can be selected from a MySQL database. In the very same table in the database is a field called Suffix which contains phone suffix for the country. For example Denmark will have +45 as Suffix. Sweden has +46. Norway +47. Germany +49. The United States +1 and so on.
I would like the 2nd dropdown (or field) to give me the suffix for the chosen country in the 1st dropdown.
How do I do that?