js
'onclick' => new \yii\web\JsExpression(
'function(d, element) {
var cdf = $("#comment-date_from");
var cdfd = $("#comment-date_from-disp");
cdfd.datetimepicker("update", d.x);
}'
),
html
<?= $form->field($model, 'date_from', ['options' => ['class' => 'col-md-4'], ])
->widget(DateControl::classname(), [
'type'=>DateControl::FORMAT_DATETIME,
]);
?>
this code create new picker and not run validate...
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/85782585-how-to-set-time-in-datecontrol-or-datetimepicker-from-jquery?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github).
this code create new picker and not run validate...