我有日期范围选择器的activeform,如果我选择开始日期和结束日期表格daterangepicker,日期范围值/持续时间,它将自动计算一些数据
<div class="pelaksana-form">
<?php $form = ActiveForm::begin([
'options'=>['id'=>'pelaksanaForm', 'data-pjax'=>true, ]
]); ?>
<label class="control-label">Range Perjalanan Dinas</label>
<?= DatePicker::widget([
'type' => DatePicker::TYPE_RANGE,
'model' => $model,
'attribute' => 'tgl_berangkat',
'attribute2' => 'tgl_pulang',
'options' => ['placeholder' => 'Start date'],
'options2' => ['placeholder' => 'End date'],
'form' => $form,
'pluginOptions' => [
'format' => 'yyyy-mm-dd',
'autoclose' => true,
]
]); ?>
<?= $form->field($mdanggaran, 'uangharian')->textInput(['value' => $sbu->pesawat_pp ])?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
范围值(日)将使用&#34; uangharian&#34;
计算我认为它使用jquery,但我不知道,我没有找到任何演示源代码