Skip to content
Advertisement

Connect two comboboxes via a dictionary (with the purpose to display male or female names in the combobox)

I have a combobox where I select the gender Male or Female. Then I have another combobox where now all the names of people are displayed (without distinction of gender).

I would like to select Male from the first combobox and automatically display (without button) the Male names in the second combobox. The same thing for Female names. Thank you

JavaScript

Advertisement

Answer

You can bind <<ComboboxSelected>> event on gender and update value option of all_name inside the event callback:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement