如何将 textInput
设置为 readOnly
?我有下面的示例代码:
<?= $form->field($model, 'GrossPay')->textInput(['id'=>'GrossPay','readonly'=> true])?>
最佳答案
它是readOnly
而不是readonly,但在这里没有什么区别。
<?= $form->field($model, 'GrossPay')->textInput(['id'=>'GrossPay','readonly'=> true])?>
关于yii2 - 如何在 Yii2 中将 textInput 设置为 readOnly?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40152411/