EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on April 16, 2021, 04:20:40 PM



Title: combobox events
Post by: roberto on April 16, 2021, 04:20:40 PM
I can change the onSelect event but not the onChange event! Why?

Code:
var opt = $('#mycombobox').combobox('options');
opt.onSelect = function(rec) { console.log(rec); };
opt.onChange = function(newValue, oldValue) { console.log(newValue, oldValue); };

tks


Title: Re: combobox events
Post by: jarry on April 16, 2021, 04:28:53 PM
Call this code instead.
Code:
$('#mycombobox').combobox({
onChange: function(newValue, oldValue){
...
}
});