EasyUI Forum
April 19, 2024, 02:52:21 AM *
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 events  (Read 4188 times)
roberto
Jr. Member
**
Posts: 88


View Profile Email
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: April 16, 2021, 04:28:53 PM »

Call this code instead.
Code:
$('#mycombobox').combobox({
onChange: function(newValue, oldValue){
...
}
});
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!