EasyUI Forum
September 16, 2025, 08:41:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: combobox question  (Read 9823 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: April 25, 2013, 03:54:52 AM »

I have the following drop-down list

Code:
<select id="abc" style="width:110px;" class="easyui-combobox" >
    <option value=""></option>
    <option value="a">A</option>
    <option value="b">B</option>
    <option value="c">C</option>
</select>

When 1st (empty) option is selected in openned drop-down list it looks like very small yellow line.
The height of this line is less than for usual item.

How can I get "empty" option look like I have any value in it?

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 25, 2013, 05:58:42 AM »

Please try the code below:
Code:
<select id="abc" style="width:110px;" class="easyui-combobox" data-options="
formatter:function(row){
return row.text ? row.text : '&nbsp;';
}
">
    <option value=""></option>
    <option value="a">A</option>
    <option value="b">B</option>
    <option value="c">C</option>
</select>
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: April 25, 2013, 06:31:47 AM »

it helps

Thanks
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!