EasyUI Forum
April 26, 2024, 01:59:57 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 issue  (Read 4962 times)
felixHo
Newbie
*
Posts: 4


View Profile Email
« on: February 01, 2018, 02:00:19 AM »

The new vision 1.5.4.1. When I use Combobox onSelect event on IE 11, I can't get value through getValue method. Always blank value. The 1.5.3 version is OK.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: February 01, 2018, 02:32:51 AM »

The 'onSelect' event fires before the 'onChange' event. Try this code to get the selected value.
Code:
$('#cc').combobox({
onSelect: function(row){
var opts = $(this).combobox('options');
var value = row[opts.valueField];
console.log('select:'+value)
}
});
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!