Question : yii2 activeform adding field css class
Answered by : nutty-narwhal-xpaxojtg3g20
<?= $form->field($model, 'url')->textInput(['maxlength' => 255, 'class' => 'your class'])->label(false); ?>
Source : https://stackoverflow.com/questions/28995827/yii2-how-to-add-a-css-class-to-an-activeform-field | Last Update : Mon, 25 Jul 22