Did a quick search but only very old stuff, so I want to use placeholder text in form text fields.
Where does this go, and what is the syntax if available please ?
Did a quick search but only very old stuff, so I want to use placeholder text in form text fields.
Where does this go, and what is the syntax if available please ?
Example:
<?= $form->field($model, 'faq_question')->textInput(['maxlength' => 255, 'placeholder'=>'Enter Your Question']) ?>
nice and easy, thx