Dhtmlx Combo Deafult value

Dear Support Team!

How can i set default value for combobox like ‘choose…’ ?

......
z.attachEvent("onKeyPressed", onChangeFunc);
function onChangeFunc(id) {
	alert(id.getSelectedText());   
    if(id.getSelectedText() == '')
    id.setComboText() = 'choose...';
}
}

Tahank you for your help

I change my code but still not working.

z.attachEvent("onBlur", onChangeFunc);
function onChangeFunc() {
	
    if(z.getComboText() == '')
    z.setComboText() = 'choose...';  ==> invalid assignment left-hand side
                                                         z.setComboText() = 'choose...'; 
}

problem is solved. right method is => z.setComboText(“choose…”);

Sorry. :slight_smile: