EasyUI Forum
September 14, 2025, 04:43:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: comboBox Change Event Listener  (Read 22590 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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 ??
Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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);
}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!