I would like the labels for my form elements to be greyed out if the input is disabled and am not able to get it to work for text inputs. I have tried the following:
You can use atribute selectors in CSS, example https://jsfiddle.net/8pp6mpp5/1/
Html
Hola Mundo! Hola Mundo!`
CSS
label[disabled="disabled"]{ background-color: #AAA; }