EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on September 29, 2012, 03:17:35 AM



Title: comboBox Change Event Listener
Post by: devnull on September 29, 2012, 03:17:35 AM
Hi;

I would like to set up an event listener for changes to the comboBox instead of adding events to each instance of the comboboxes as I have a lot of them.

Code:
$(document).on("change", ".combo-value", function() {
cl(this);
});

I have tried several methods of detecting the change event but so far no success, can this be done ??


Title: Re: comboBox Change Event Listener
Post by: stworthy on September 29, 2012, 07:38:21 AM
The 'onChange' event can be used to get what changes applied to the combobox.

Code:
$.fn.combobox.onChange=function(newValue,oldValue){
alert(newValue);
}