ComboBox change event - HTML Canvas
Trying to get a simple alert to show the value of the selected option in a combobox. The alert is showing, but not the value.
if(!this.cb_change_LensMagCombo_1) { // where this.cb is your combobox
function cb_change(evt) {
// Start your custom code
alert(evt); // use switch/case or multiple if-statments
// End your custom code
}
$("#dom_overlay_container").on("change", "#LensMagCombo_1", cb_change.bind(this));
this.cb_change_LensMagCombo_1 = true;
}
Also, I have six similar comboboxes. Would would be an efficient way to do that code. The comboboxes have different values.
