erick9024
(New Angel 24)
1
como hago para que mi
<?php
$this->widget("zii.widgets.jui.CJuiDatePicker",array(
"attribute"=>"fact_fech",
"model"=>$model,
"language"=>"es",
"options"=>array(
"dateFormat"=>"yy-mm-dd",
'showButtonPanel' => true,
'changeYear' => true,
'changeMonth' => true,
'changeYear' => true,
'yearRange' => '-90:-0',
'minDate' => '-80Y',
'maxDate' => '-0Y',
)
));
?>
me actualize la fecha que elija en dos campos al mismo tiempo
rahif
(Rahif)
2
Prueba con esto:
<?php
$this->widget("zii.widgets.jui.CJuiDatePicker",array(
"attribute"=>"fact_fech",
"model"=>$model,
"language"=>"es",
"options"=>array(
"dateFormat"=>"yy-mm-dd",
'showButtonPanel' => true,
'changeYear' => true,
'changeMonth' => true,
'changeYear' => true,
'yearRange' => '-90:-0',
'minDate' => '-80Y',
'maxDate' => '-0Y',
'onSelect'=>"js:function() {$('#id_fecha2').val($(this).val()); }"
)
));
?>
Aquí tienes la documentacion de Datepicker
un saludo
erick9024
(New Angel 24)
3
Gracias Me funciona muy bien ya lo había intentado de esa forma pero había puesto mal el id