なぜそれがうまくいかないのか誰か教えてもらえますか?
実際の質問: 日付ピッカーで日付を参照するときに、選択が行われていない場合はデフォルトの日を選択する必要があります。
Jquery Datepicker で手動で実行しましたが、Zii Widget を使用する YII では取得できません。
$this->datePickerOptions = array(
'showAnim' => 'fold',
'dateFormat'=>'dd M yy',
'changeMonth' => 'true',`enter code here`
'changeYear'=>'true',
'constrainInput' => 'false',
'firstDay' => 1,
'onChangeMonthYear' => 'js:function (year, MM, inst) {
var selectedDate = new Date();
_currentDay=this.value.toString().substr(0,2);
selectedDate = Date.parse(MM + "" + _currentDay + " " + year );
this.value=selectedDate.toString("dd MMM yyyy");
}'