EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: kingor2001 on October 27, 2017, 06:31:22 AM



Title: 'select' and 'setValue' with combobox
Post by: kingor2001 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!


Title: Re: 'select' and 'setValue' with combobox
Post by: stworthy 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.


Title: Re: 'select' and 'setValue' with combobox
Post by: kingor2001 on October 30, 2017, 02:41:12 AM
thanks a lot.