this.choseDate = function(obj) {
var myDate = new Date();
if((obj.id) == 'year') {
[color=red]//修改startDate的onclick事件 为onfocus [/color]
$get('startDate').onclick = function() {
alert('startDateYear'); //注意这里!!
WdatePicker({isShowToday:false,dateFmt: 'yyyy' ,maxDate: myDate.getYear()});
}
}
if((obj.id) == 'month') {
[color=red] //修改startDate的onclick事件 为onfocus[/color]
$get('startDate').onclick = function() {
alert('startDateMonth');注意这里!!
WdatePicker({isShowToday:false,dateFmt: 'yyyy-MM' ,maxDate: myDate.getYear()});
}
}
}
My97控件自动为onlclik绑定了onfocus事件