Ayuda Cjuidatepicker!

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

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

Gracias Me funciona muy bien ya lo había intentado de esa forma pero había puesto mal el id :D