Default Dynamic select dropdownlist value


I don’t know what to write in Topic Title, but this is what I need to do. If any of you can help or know of an extension to do this, please.

I have a dropdown list containg a list of companies.

I have another dropdown list containg a list of currencies(dollar, euro, etc) directly below the companies list.

When I select a company, I want the currency list to automatically select the correct one for that company.

I have the database setup correctly, so each company record will have an currency_id as a value. So I have the currency_id for each company.

Just no idea where or how to start with this.

How to dynamically change the default selected currency value based on the company chosen?

Take a look at Kartik’s depdrop widget, it’s useful for cases like that.

Thank you, got it working.