0

If i want to select input with type checkbox and which is disabled i use

<input type="checkbox" disabled/>
input[type="checkbox"]:disabled

but i need now to select input with secondary attribute for example

How can i insert here also the :greyed-out ?

<input type="checkbox" disabled greyed-out />
input[type="checkbox"]:disabled ... 
MaxiGui
  • 6,190
  • 4
  • 16
  • 33
peckoski
  • 105
  • 6
  • 3
    Just add another attribute selector: `input[type="checkbox"][greyed-out]:disabled` – CBroe Sep 30 '21 at 14:01
  • 2
    Does this answer your question? [Specify multiple attribute selectors in CSS](https://stackoverflow.com/questions/12340737/specify-multiple-attribute-selectors-in-css) – MaxiGui Sep 30 '21 at 14:02
  • 3
    Having a non-standard attribute `greyed-out` is rather ugly, btw. - that should rather be a custom data attribute. (If it is not better handled by a class to begin with.) – CBroe Sep 30 '21 at 14:02

1 Answers1

0

yeah as CBroe commented use input[type="checkbox"][greyed-out]:disabled

Coder_Naveed
  • 526
  • 5
  • 5