EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: chrwei on December 29, 2020, 07:31:06 AM



Title: editable combo's onchange not firing when typing into box
Post by: chrwei on December 29, 2020, 07:31:06 AM

Code:
$("#test").combo({
required:true,
label: "test",
onChange: function(n,o) {
console.log(n, o)
}
});

onChange never fires, and getValue returns empty string.


Title: Re: editable combo's onchange not firing when typing into box
Post by: jarry on December 30, 2020, 08:28:18 PM
The combo is the base component for all other drop-down components. It does nothing in displaying data. You should call 'setValue' method to trigger the 'onChange' event. If you want a drop-down list component, use the combobox component instead.