Hi,
Does anyone knows how to put a placeholder in a masked input field?
Below is my code.
<?= $form->field($model, ‘price’,[‘addon’ => [
'prepend' => ['content' => '₹', 'options'=>['class'=>'alert-success']],
],
'feedbackIcon' => [
'success' => 'ok',
'error' => 'exclamation-sign',
'defaultOptions' => ['class'=>'text-primary']
],
'inputOptions' => [
'placeholder' => "Enter Dealership Name",
]
])->textinput(['class' => 'form-control'])->label("Ex-Showroom
Price*")->widget('yii\widgets\MaskedInput', [
// 'name' => 'input-33',
'clientOptions' => [
'alias' => 'decimal',
'placeholder' => 'test',
'groupSeparator' => ',',
'autoGroup' => true,
],
]); ?>
The placeholder does not show up. If anyone knows how to do it, it will be of great help.
Vaibhav