It is necessary that the disabled block is assigned:

display: none; 

Not disabled block:

 display: block; 

How can this be realized?

  • one
    Can you provide context as example code? - Rogatnev Nikita 2:28

1 answer 1

You can use the selector by property:

 div { display: block; } div[disabled="disabled"] { display: none; } 
 <div disabled="disabled">disabled</div> <div>active</div>