Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a disabled select box look like a normal text box(css only)

I tried to change the inline css of the select box as below

.chosen-disabled .chosen-single {
  cursor: default;
  color: #000;
  border: 1px solid #444; 
}

The select box appeared to be faded but I need it to be look like a normal text field(but still disabled).

Please help me here and thanks in advance.

like image 881
SHEFEEK A Avatar asked Mar 16 '23 06:03

SHEFEEK A


2 Answers

Thank @Christoph and @Carine, i override the chose disable class by giving inline css as

.chosen-disabled {
    opacity: 1 !important;
}

now its working fine, thanks once again for your support.

like image 175
SHEFEEK A Avatar answered May 16 '23 06:05

SHEFEEK A


You can use the disabled CSS selector.

input[type="text"]:disabled {
    background: #dddddd;
}

Demo: http://fiddle.jshell.net/bronni/ar1qoznj/

like image 26
Christoph Avatar answered May 16 '23 06:05

Christoph