A
A
Alexander Verbitsky2020-02-06 16:03:02
Yii
Alexander Verbitsky, 2020-02-06 16:03:02

How to highlight in red only the block with an explanation in yii2 in case of an error in form->field()?

How to specify that after validation, only the block with an explanation is highlighted in red, and not the entire field with the title?

5e3c0e3f2b4fd920903418.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-02-07
@VerbAlexVlad

/*css*/
.has-error .control-label {
     color: none;
}
.has-error .form-control {
     color: none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question