How do you set a textInput
to readOnly
? I have the sample code below:
<?= $form->field($model, 'GrossPay')->textInput(['id'=>'GrossPay','readonly'=> true])?>
It's readOnly
not readonly but it does not make a difference here.
<?= $form->field($model, 'GrossPay')->textInput(['id'=>'GrossPay','readonly'=> true])?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With