Box Inputcolor

I my from, are several Inputs, Combos and so on. Depending on different criterias thoos elemenst goes to readwrite, readonly and disabeld mode.
To shwo the usere the current state i want to change the color of thoose inputs. This cloub be done via bordercolor, label color oder textcolor.
Whats the correct way to do so via css?

With best regards,
Uwe Janke

Hello
You need to apply className to the item and add some properties in tag
I.e.

{type:'input', name:'inp1', id:'inp1', label:'inp1', value:'inp1', className: "inp1"} //input

CSS

.inp1 .dhxform_label {color: red !important;} .inp1 .dhxform_textarea {border-color: red !important;}