EasyUI Forum
May 05, 2024, 08:54:11 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: 'select' and 'setValue' with combobox  (Read 9417 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« on: October 27, 2017, 06:31:22 AM »

Hi,I wonder what's the difference between the two methods -- 'select' and 'setValue' with combobox. I tested out they have the same effect.
thx!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 28, 2017, 12:23:08 AM »

You can call 'setValue' method to set multiple values.
Code:
$('#cc').combobox('setValue', '3');
$('#cc').combobox('setValue', ['3','4']);

But you can only call 'select' method to select one single value.
Logged
kingor2001
Jr. Member
**
Posts: 61


View Profile
« Reply #2 on: October 30, 2017, 02:41:12 AM »

thanks a lot.
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!