I have the following HTML Structure. I try to gray out the checkbox when readonly="readonly" is valid. Is there a good way to do that via CSS?
<input type="email" class="input-text " name="billing_email" id="billing_email" placeholder="" value="[email protected]" readonly="readonly" autocomplete="email username">
2
Answers
You can use the
disabled
attribute instead ofreadonly
, it sounds like it will do what you want.See this code fiddle
you can try input[readonly] {
color: gray
}