johnwilker.com

Two ways to programmatically work with a combobox, and still use the change event handler

The project I’m working on required that we have two drop downs, and that they be preselected to the first option. Sounds good, except that one of the drop downs had a ‘change’ event handler, that would do ‘some stuff’ based on the selection. Obviously just selecting the first item wasn’t a very good solution, [...]