EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 05, 2024, 08:54:11 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
'select' and 'setValue' with combobox
Pages: [
1
]
« previous
next »
Print
Author
Topic: 'select' and 'setValue' with combobox (Read 9417 times)
kingor2001
Jr. Member
Posts: 61
'select' and 'setValue' with combobox
«
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
Re: 'select' and 'setValue' with combobox
«
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
Re: 'select' and 'setValue' with combobox
«
Reply #2 on:
October 30, 2017, 02:41:12 AM »
thanks a lot.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...