EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2025, 11:51:00 PM
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
>
combobox with disabled item
Pages: [
1
]
« previous
next »
Print
Author
Topic: combobox with disabled item (Read 15118 times)
mzeddd
Full Member
Posts: 223
combobox with disabled item
«
on:
October 10, 2013, 06:05:47 AM »
Hi,
Is it possible to have
disabled
flag for combobox in the same way as it exists in <select> Tag ?
Code:
<select size="1" class="easyui-combobox" >
<option value="1">1</option>
<option value="2" disabled>2</option>
</select>
Thanks!
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: combobox with disabled item
«
Reply #1 on:
October 11, 2013, 05:58:24 PM »
This feature will be supported in next version 1.3.5. You can download the updated combobox plugin from
http://www.jeasyui.com/easyui/plugins/jquery.combobox.js
. Be sure to add the 'combobox-item-disabled' css style to the page.
Code:
<style>
.combobox-item-disabled{
opacity: 0.5;
filter: alpha(opacity=50);
}
</style>
Logged
thecyberzone
Full Member
Posts: 176
Re: combobox with disabled item
«
Reply #2 on:
July 22, 2020, 11:14:37 AM »
And how to disable a single row in the combobox programmatically?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: combobox with disabled item
«
Reply #3 on:
July 22, 2020, 11:51:56 PM »
The code below shows how to disable the second line on the combobox items.
Code:
var cc = $('#cc');
var data = cc.combobox('getData');
data[1].disabled = true;
cc.combobox('loadData', data);
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...