EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: MSAG on December 20, 2018, 08:00:34 AM



Title: [Solved]Disabled Item for combobox
Post by: MSAG on December 20, 2018, 08:00:34 AM
Hi

how can I add disabled Item for combobox by javascript not only tags

This by tags:

<select class="easyui-combobox" >
   <option value="1">one</option>
   <option value="2" disabled>two</option>
</select>

JavaScript?

thanks a lot


Title: Re: Disabled Item for combobox
Post by: jarry on December 21, 2018, 01:01:01 AM
Just set the 'disabled' to true for your data.
Code:
[{
   "id":1,
   "text":"Java"
},{
   "id":2,
   "text":"C#",
   "disabled":true
},{
   "id":3,
   "text":"Ruby"
}]


Title: Re: Disabled Item for combobox
Post by: MSAG on December 21, 2018, 08:59:23 AM
thanks it's work ;)