var temp = document.getElementById("inputdateid").value; document.getElementById("inputdateid").value = ''; var inputdateCombo = Ext.getCmp("inputdateid"); //下面两行用来设置默认值 if(temp == '请选择日期...') inputdateCombo.emptyText = '请选择日期...'; else inputdateCombo.emptyText = '请重新选择日期...'; inputdateCombo.applyEmptyText(); inputdateCombo.setRawValue(inputdateCombo.emptyText); inputdateCombo.show();
?