EasyUI Forum
October 17, 2025, 03:17:02 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: Basic ComboBox demo  (Read 7904 times)
rezzonico
Full Member
***
Posts: 186


View Profile
« on: November 24, 2015, 02:13:45 AM »

Hi all,

I am trying to modify the "Basic ComboBox" demo.
I only added an "onSelect" event and a "console.log" to output the selected value.

Please try the following link and write the word Alabama
Look into the WebConsole.
After writing Alabama in the WebConsole you see Alabam ... why not Alabama ?

http://195.144.40.170/jeasyui/EEE/index1.html

Thanks for any help.
Miche
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 24, 2015, 06:27:44 AM »

The 'onSelect' event fires before 'onChange' event. Please use the 'onChange' event instead, or try the code below:
Code:
$('#state').combobox({
onSelect: function(item){
console.log(item.text)
}
})
Logged
rezzonico
Full Member
***
Posts: 186


View Profile
« Reply #2 on: November 24, 2015, 08:38:29 AM »

Thanks for your help !

Regards
Miche
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!