D
D
Diabo1ic2015-10-08 18:32:11
Yii
Diabo1ic, 2015-10-08 18:32:11

YII2. How to load datepicker widget with ajax?

It is necessary to load the code block containing the DatePicker calendar into the form with Ajax.
But when loading the plugin does not work, tell me how to solve the problem
Ajax works properly, DatePicker does not work
<?= $form->field($prices,'date_to')
->widget(
DatePicker: :className(),[
'dateFormat' => 'yyyy-MM-dd',
])
?>
And if the DatePicker loads with the page, then no problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alem Nur, 2015-10-23
@ayan-trojan

handy DatePicker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question