Answer the question
In order to leave comments, you need to log in
How to assign checked to radio?
How to assign checked to one of the radio?
<?php $form = ActiveForm::begin() ?>
<?= $form->field($orders,'status')->radio(['value' => '0'] )->label('Физическое лицо');?>
</div>
<div class="col-md-6">
<?= $form->field($orders,'status')->radio(['value' => '1'])->label('Юридическое лицо');?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question